aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/lockd
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-03-14 14:18:37 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-03-19 18:00:47 -0400
commiteb18860e1385bfc7f08fcb7ba362e4a5156c8324 (patch)
treec8dff7c59d8b2d356eda454aa57c6f0e278cad6b /include/linux/lockd
parent90d5b18061656993410dfd57ddb88aa5a3f34563 (diff)
downloadkernel_samsung_smdk4412-eb18860e1385bfc7f08fcb7ba362e4a5156c8324.zip
kernel_samsung_smdk4412-eb18860e1385bfc7f08fcb7ba362e4a5156c8324.tar.gz
kernel_samsung_smdk4412-eb18860e1385bfc7f08fcb7ba362e4a5156c8324.tar.bz2
NLM: NLM protocol version numbers are u32
Clean up: RPC protocol version numbers are u32. Make sure we use an appropriate type for NLM version numbers when calling nlm_lookup_host(). Eliminates a harmless mixed sign comparison in nlm_host_lookup(). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/lockd')
-rw-r--r--include/linux/lockd/lockd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h
index 4babb2a..d155950 100644
--- a/include/linux/lockd/lockd.h
+++ b/include/linux/lockd/lockd.h
@@ -173,8 +173,10 @@ void nlmclnt_next_cookie(struct nlm_cookie *);
/*
* Host cache
*/
-struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *, int, int,
- const char *, unsigned int);
+struct nlm_host *nlmclnt_lookup_host(const struct sockaddr_in *sin,
+ int proto, u32 version,
+ const char *hostname,
+ unsigned int hostname_len);
struct nlm_host *nlmsvc_lookup_host(struct svc_rqst *, const char *,
unsigned int);
struct rpc_clnt * nlm_bind_host(struct nlm_host *);