]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
SUNRPC: Use appropriate argument types in rpcb client
authorChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jan 2008 20:11:53 +0000 (15:11 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 30 Jan 2008 07:06:09 +0000 (02:06 -0500)
Clean up: Follow recommendations of Chapter 5 of Documentation/CodingStyle
and use "u32" instead of "__u32" for types in definitions that are not
shared with user space.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/clnt.h
net/sunrpc/rpcb_clnt.c

index 5a13da2573b054ac47e5acc231477818d3fdc05f..3e9addc741c1ad8a57b41c9172d3114b53faee1b 100644 (file)
@@ -125,7 +125,7 @@ void                rpc_shutdown_client(struct rpc_clnt *);
 void           rpc_release_client(struct rpc_clnt *);
 
 int            rpcb_register(u32, u32, int, unsigned short, int *);
-int            rpcb_getport_sync(struct sockaddr_in *, __u32, __u32, int);
+int            rpcb_getport_sync(struct sockaddr_in *, u32, u32, int);
 void           rpcb_getport_async(struct rpc_task *);
 
 void           rpc_call_start(struct rpc_task *);
index 8962ac6b4c11958482edfdf995593ccb4525a0f8..77af989ecc9c0e553e94918fa3a5dca0951f5ebf 100644 (file)
@@ -205,8 +205,7 @@ int rpcb_register(u32 prog, u32 vers, int prot, unsigned short port, int *okay)
  *
  * XXX: Needs to support IPv6, and rpcbind versions 3 and 4
  */
-int rpcb_getport_sync(struct sockaddr_in *sin, __u32 prog,
-                     __u32 vers, int prot)
+int rpcb_getport_sync(struct sockaddr_in *sin, u32 prog, u32 vers, int prot)
 {
        struct rpcbind_args map = {
                .r_prog         = prog,