]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pnfs/objlayout: fix endianess annotation in objio_alloc_deviceid_node
authorChristoph Hellwig <hch@lst.de>
Thu, 11 Sep 2014 00:36:29 +0000 (17:36 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 12 Sep 2014 17:20:43 +0000 (13:20 -0400)
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>
fs/nfs/objlayout/objio_osd.c

index c502f640209b3cb2cdc41f850d711f0991487af8..c6e4bda6300067caef8073b5b5e77f36f2fc408f 100644 (file)
@@ -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);