diff options
| -rw-r--r-- | net/sunrpc/sched.c | 7 | ||||
| -rw-r--r-- | net/sunrpc/sunrpc.h | 10 |
2 files changed, 12 insertions, 5 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 8f459abe97cf..cef74ba0666c 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
| @@ -21,6 +21,8 @@ | |||
| 21 | 21 | ||
| 22 | #include <linux/sunrpc/clnt.h> | 22 | #include <linux/sunrpc/clnt.h> |
| 23 | 23 | ||
| 24 | #include "sunrpc.h" | ||
| 25 | |||
| 24 | #ifdef RPC_DEBUG | 26 | #ifdef RPC_DEBUG |
| 25 | #define RPCDBG_FACILITY RPCDBG_SCHED | 27 | #define RPCDBG_FACILITY RPCDBG_SCHED |
| 26 | #define RPC_TASK_MAGIC_ID 0xf00baa | 28 | #define RPC_TASK_MAGIC_ID 0xf00baa |
| @@ -711,11 +713,6 @@ static void rpc_async_schedule(struct work_struct *work) | |||
| 711 | __rpc_execute(container_of(work, struct rpc_task, u.tk_work)); | 713 | __rpc_execute(container_of(work, struct rpc_task, u.tk_work)); |
| 712 | } | 714 | } |
| 713 | 715 | ||
| 714 | struct rpc_buffer { | ||
| 715 | size_t len; | ||
| 716 | char data[]; | ||
| 717 | }; | ||
| 718 | |||
| 719 | /** | 716 | /** |
| 720 | * rpc_malloc - allocate an RPC buffer | 717 | * rpc_malloc - allocate an RPC buffer |
| 721 | * @task: RPC task that will use this buffer | 718 | * @task: RPC task that will use this buffer |
diff --git a/net/sunrpc/sunrpc.h b/net/sunrpc/sunrpc.h index 5d9dd742264b..13171e63f51b 100644 --- a/net/sunrpc/sunrpc.h +++ b/net/sunrpc/sunrpc.h | |||
| @@ -27,6 +27,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
| 27 | #ifndef _NET_SUNRPC_SUNRPC_H | 27 | #ifndef _NET_SUNRPC_SUNRPC_H |
| 28 | #define _NET_SUNRPC_SUNRPC_H | 28 | #define _NET_SUNRPC_SUNRPC_H |
| 29 | 29 | ||
| 30 | #include <linux/net.h> | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Header for dynamically allocated rpc buffers. | ||
| 34 | */ | ||
| 35 | struct rpc_buffer { | ||
| 36 | size_t len; | ||
| 37 | char data[]; | ||
| 38 | }; | ||
| 39 | |||
| 30 | static inline int rpc_reply_expected(struct rpc_task *task) | 40 | static inline int rpc_reply_expected(struct rpc_task *task) |
| 31 | { | 41 | { |
| 32 | return (task->tk_msg.rpc_proc != NULL) && | 42 | return (task->tk_msg.rpc_proc != NULL) && |
