raw1394: fix whitespace after x86_64 compat patch

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
This commit is contained in:
Ben Collins 2006-06-12 18:12:10 -04:00
parent fa7614de60
commit 7597028a83

View file

@ -408,20 +408,20 @@ static void fcp_request(struct hpsb_host *host, int nodeid, int direction,
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
struct compat_raw1394_req { struct compat_raw1394_req {
__u32 type; __u32 type;
__s32 error; __s32 error;
__u32 misc; __u32 misc;
__u32 generation; __u32 generation;
__u32 length; __u32 length;
__u64 address; __u64 address;
__u64 tag; __u64 tag;
__u64 sendb; __u64 sendb;
__u64 recvb; __u64 recvb;
} __attribute__((packed)); } __attribute__((packed));
static const char __user *raw1394_compat_write(const char __user *buf) static const char __user *raw1394_compat_write(const char __user *buf)
{ {
@ -432,10 +432,10 @@ static const char __user *raw1394_compat_write(const char __user *buf)
#define C(x) __copy_in_user(&r->x, &cr->x, sizeof(r->x)) #define C(x) __copy_in_user(&r->x, &cr->x, sizeof(r->x))
if (copy_in_user(r, cr, sizeof(struct compat_raw1394_req)) || if (copy_in_user(r, cr, sizeof(struct compat_raw1394_req)) ||
C(address) || C(address) ||
C(tag) || C(tag) ||
C(sendb) || C(sendb) ||
C(recvb)) C(recvb))
return ERR_PTR(-EFAULT); return ERR_PTR(-EFAULT);
return (const char __user *)r; return (const char __user *)r;
} }
@ -447,7 +447,7 @@ static int
raw1394_compat_read(const char __user *buf, struct raw1394_request *r) raw1394_compat_read(const char __user *buf, struct raw1394_request *r)
{ {
struct compat_raw1394_req __user *cr = (typeof(cr)) r; struct compat_raw1394_req __user *cr = (typeof(cr)) r;
if (!access_ok(VERIFY_WRITE,cr,sizeof(struct compat_raw1394_req)) || if (!access_ok(VERIFY_WRITE, cr, sizeof(struct compat_raw1394_req)) ||
P(type) || P(type) ||
P(error) || P(error) ||
P(misc) || P(misc) ||
@ -513,10 +513,9 @@ static ssize_t raw1394_read(struct file *file, char __user * buffer,
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
if (count == sizeof(struct compat_raw1394_req) && if (count == sizeof(struct compat_raw1394_req) &&
sizeof(struct compat_raw1394_req) != sizeof(struct compat_raw1394_req) !=
sizeof(struct raw1394_request)) { sizeof(struct raw1394_request)) {
ret = raw1394_compat_read(buffer, &req->req); ret = raw1394_compat_read(buffer, &req->req);
} else } else
#endif #endif
{ {
@ -2348,7 +2347,6 @@ static int state_connected(struct file_info *fi, struct pending_request *req)
return handle_async_request(fi, req, node); return handle_async_request(fi, req, node);
} }
static ssize_t raw1394_write(struct file *file, const char __user * buffer, static ssize_t raw1394_write(struct file *file, const char __user * buffer,
size_t count, loff_t * offset_is_ignored) size_t count, loff_t * offset_is_ignored)
{ {
@ -2358,7 +2356,7 @@ static ssize_t raw1394_write(struct file *file, const char __user * buffer,
#ifdef CONFIG_COMPAT #ifdef CONFIG_COMPAT
if (count == sizeof(struct compat_raw1394_req) && if (count == sizeof(struct compat_raw1394_req) &&
sizeof(struct compat_raw1394_req) != sizeof(struct compat_raw1394_req) !=
sizeof(struct raw1394_request)) { sizeof(struct raw1394_request)) {
buffer = raw1394_compat_write(buffer); buffer = raw1394_compat_write(buffer);
if (IS_ERR(buffer)) if (IS_ERR(buffer))