]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
NFS: add an endian notation
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 12 Jan 2012 07:06:05 +0000 (10:06 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 12 Jan 2012 21:29:51 +0000 (16:29 -0500)
This function returns a big endian value.  The implementation in
fs/nfs/callback_proc.c is declared with "__be32" but the .h file uses
"unsigned" instead.  It makes sparse complain:

fs/nfs/callback_proc.c:232:8: error:
symbol 'nfs4_callback_layoutrecall' redeclared with different
type (originally declared at fs/nfs/callback.h:165) - different
base types

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback.h

index 07df5f1d85e5188b16d51f13049dd925870b5238..c89d3b9e483c463cb1b9232e4b97520a7b7e1eaf 100644 (file)
@@ -162,7 +162,7 @@ struct cb_layoutrecallargs {
        };
 };
 
-extern unsigned nfs4_callback_layoutrecall(
+extern __be32 nfs4_callback_layoutrecall(
        struct cb_layoutrecallargs *args,
        void *dummy, struct cb_process_state *cps);