From: Christoph Hellwig Date: Thu, 11 Sep 2014 00:36:29 +0000 (-0700) Subject: pnfs/objlayout: fix endianess annotation in objio_alloc_deviceid_node X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fd41b4748b3b6c1220f926427bf63bef456034a5;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Christoph Hellwig Signed-off-by: Trond Myklebust --- 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, 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);