aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2014-09-10 20:36:29 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-09-12 13:20:43 -0400
commitfd41b4748b3b6c1220f926427bf63bef456034a5 (patch)
tree4be3fe83862101828428a107151d6640cb6f3365 /fs/nfs
parent3e3f6b4e2613627d4e971c44eec35e945b39e5e5 (diff)
pnfs/objlayout: fix endianess annotation in objio_alloc_deviceid_node
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>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/objlayout/objio_osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/objlayout/objio_osd.c b/fs/nfs/objlayout/objio_osd.c
index c502f640209b..c6e4bda63000 100644
--- a/fs/nfs/objlayout/objio_osd.c
+++ b/fs/nfs/objlayout/objio_osd.c
@@ -93,7 +93,7 @@ objio_alloc_deviceid_node(struct nfs_server *server, struct pnfs_device *pdev,
93 struct osd_dev *od; 93 struct osd_dev *od;
94 struct osd_dev_info odi; 94 struct osd_dev_info odi;
95 bool retry_flag = true; 95 bool retry_flag = true;
96 u32 *p; 96 __be32 *p;
97 int err; 97 int err;
98 98
99 deviceaddr = kzalloc(sizeof(*deviceaddr), gfp_flags); 99 deviceaddr = kzalloc(sizeof(*deviceaddr), gfp_flags);