]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ceph: fix sparse endian warning
authorSage Weil <sage@newdream.net>
Wed, 4 Nov 2009 19:40:05 +0000 (11:40 -0800)
committerSage Weil <sage@newdream.net>
Thu, 5 Nov 2009 00:36:12 +0000 (16:36 -0800)
Use the __le macro, even though for -1 it doesn't matter.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/file.c
fs/ceph/super.c

index 1bd57c8953bf5662e89818bf6216ba926f20ced6..fc8aff4767d3fc8d46a4d70ca52cf59e0866ac58 100644 (file)
@@ -52,7 +52,7 @@ prepare_open_request(struct super_block *sb, int flags, int create_mode)
        req->r_fmode = ceph_flags_to_mode(flags);
        req->r_args.open.flags = cpu_to_le32(flags);
        req->r_args.open.mode = cpu_to_le32(create_mode);
-       req->r_args.open.preferred = -1;
+       req->r_args.open.preferred = cpu_to_le32(-1);
 out:
        return req;
 }
index 0ae40bad53c4bbc8b354376d37f5056ba89d7182..1ac7b07214f3e44878860fe2d2c9a9b5e67b54bf 100644 (file)
@@ -804,7 +804,7 @@ static int ceph_get_sb(struct file_system_type *fs_type,
        struct ceph_client *client;
        int err;
        int (*compare_super)(struct super_block *, void *) = ceph_compare_super;
-       const char *path = 0;
+       const char *path = NULL;
        struct ceph_mount_args *args;
 
        dout("ceph_get_sb\n");