Commit 6a18be16 authored by Sage Weil's avatar Sage Weil

ceph: fix sparse endian warning

Use the __le macro, even though for -1 it doesn't matter.
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 51042122
......@@ -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;
}
......
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment