Skip to content

Commit

Permalink
ceph: fix sparse endian warning
Browse files Browse the repository at this point in the history
Use the __le macro, even though for -1 it doesn't matter.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Nov 5, 2009
1 parent 5104212 commit 6a18be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/ceph/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion fs/ceph/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 6a18be1

Please sign in to comment.