Skip to content

Commit

Permalink
pnfs/objlayout: fix endianess annotation in objio_alloc_deviceid_node
Browse files Browse the repository at this point in the history
The kbuild test robot complained about a new sparse warning in
objio_alloc_deviceid_node, but it turns out that this was just a moved
reference to an existing variable.  Fix it to have the right big endian
annotated type.

Note that there are some other endianess issues in this file that I didn't
bother to sort out as they involve global headers.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
  • Loading branch information
Christoph Hellwig authored and Trond Myklebust committed Sep 12, 2014
1 parent 3e3f6b4 commit fd41b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfs/objlayout/objio_osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ objio_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev,
struct osd_dev *od;
struct osd_dev_info odi;
bool retry_flag = true;
u32 *p;
__be32 *p;
int err;

deviceaddr = kzalloc(sizeof(*deviceaddr), gfp_flags);
Expand Down

0 comments on commit fd41b47

Please sign in to comment.