From 86464aed71025541805e7b1515541aee89879e33 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Mon, 15 Feb 1999 02:15:32 +0000 Subject: Merge with Linux 2.2.1. --- include/linux/sunrpc/sched.h | 2 +- include/linux/sunrpc/stats.h | 16 ++++++++++++++++ include/linux/sunrpc/svc.h | 3 ++- include/linux/sunrpc/xprt.h | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) (limited to 'include/linux/sunrpc') diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index f0f8e0384..8ec30527f 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h @@ -128,7 +128,7 @@ void rpc_killall_tasks(struct rpc_clnt *); void rpc_execute(struct rpc_task *); void rpc_run_child(struct rpc_task *parent, struct rpc_task *child, rpc_action action); -void rpc_add_wait_queue(struct rpc_wait_queue *, struct rpc_task *); +int rpc_add_wait_queue(struct rpc_wait_queue *, struct rpc_task *); void rpc_remove_wait_queue(struct rpc_task *); void rpc_sleep_on(struct rpc_wait_queue *, struct rpc_task *, rpc_action action, rpc_action timer); diff --git a/include/linux/sunrpc/stats.h b/include/linux/sunrpc/stats.h index c01ebfa4b..24da571cb 100644 --- a/include/linux/sunrpc/stats.h +++ b/include/linux/sunrpc/stats.h @@ -9,6 +9,7 @@ #ifndef _LINUX_SUNRPC_STATS_H #define _LINUX_SUNRPC_STATS_H +#include #include struct rpc_stat { @@ -44,6 +45,7 @@ void rpc_proc_exit(void); void rpc_modcount(struct inode *, int); #endif +#ifdef CONFIG_PROC_FS struct proc_dir_entry * rpc_proc_register(struct rpc_stat *); void rpc_proc_unregister(const char *); int rpc_proc_read(char *, char **, off_t, int, @@ -55,4 +57,18 @@ int svc_proc_read(char *, char **, off_t, int, int *, void *); void svc_proc_zero(struct svc_program *); +#else + +extern inline void svc_proc_unregister(const char *p) {} +extern inline struct proc_dir_entry*svc_proc_register(struct svc_stat *s) +{ + return NULL; +} + +extern inline int svc_proc_read(char *a, char **b, off_t c, int d, int *e, void *f) +{ + return 0; +} +#endif + #endif /* _LINUX_SUNRPC_STATS_H */ diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h index 7c9a1e525..4ab59ed1c 100644 --- a/include/linux/sunrpc/svc.h +++ b/include/linux/sunrpc/svc.h @@ -106,7 +106,8 @@ struct svc_rqst { u32 rq_prot; /* IP protocol */ unsigned short rq_verfed : 1, /* reply has verifier */ rq_userset : 1, /* auth->setuser OK */ - rq_secure : 1; /* secure port */ + rq_secure : 1, /* secure port */ + rq_auth : 1; /* check client */ void * rq_argp; /* decoded arguments */ void * rq_resp; /* xdr'd results */ diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index df16576d7..032293ea3 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -158,7 +158,7 @@ struct rpc_xprt { */ union { /* record marker & XID */ u32 header[2]; - u8 * data[8]; + u8 data[8]; } tcp_recm; struct rpc_rqst * tcp_rqstp; struct iovec tcp_iovec[MAX_IOVEC]; -- cgit v1.2.3