aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-04 14:40:05 -0500
committerSage Weil <sage@newdream.net>2009-11-04 19:36:12 -0500
commit6a18be16f7513ea8a4923c161ce073987932cbdb (patch)
treeebd337329a22deb4289379dd7ccfb0e5db6bd72c
parent51042122d4f85e0f8ee577a4230f172fcc57c456 (diff)
ceph: fix sparse endian warning
Use the __le macro, even though for -1 it doesn't matter. Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r--fs/ceph/file.c2
-rw-r--r--fs/ceph/super.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 1bd57c8953bf..fc8aff4767d3 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -52,7 +52,7 @@ prepare_open_request(struct super_block *sb, int flags, int create_mode)
52 req->r_fmode = ceph_flags_to_mode(flags); 52 req->r_fmode = ceph_flags_to_mode(flags);
53 req->r_args.open.flags = cpu_to_le32(flags); 53 req->r_args.open.flags = cpu_to_le32(flags);
54 req->r_args.open.mode = cpu_to_le32(create_mode); 54 req->r_args.open.mode = cpu_to_le32(create_mode);
55 req->r_args.open.preferred = -1; 55 req->r_args.open.preferred = cpu_to_le32(-1);
56out: 56out:
57 return req; 57 return req;
58} 58}
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index 0ae40bad53c4..1ac7b07214f3 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -804,7 +804,7 @@ static int ceph_get_sb(struct file_system_type *fs_type,
804 struct ceph_client *client; 804 struct ceph_client *client;
805 int err; 805 int err;
806 int (*compare_super)(struct super_block *, void *) = ceph_compare_super; 806 int (*compare_super)(struct super_block *, void *) = ceph_compare_super;
807 const char *path = 0; 807 const char *path = NULL;
808 struct ceph_mount_args *args; 808 struct ceph_mount_args *args;
809 809
810 dout("ceph_get_sb\n"); 810 dout("ceph_get_sb\n");