Skip to content

Commit a600ffc

Browse files
Boaz HarroshJ. Bruce Fields
authored andcommitted
sunrpc: Clean never used include files
Remove include of two headers never used by this file. Doing so exposed a missing #include <linux/types.h> in include/linux/sunrpc/rpc_rdma.h. I did not see any other users dependency but if exist they should be fixed since these headers are totally irrelevant to here. Signed-off-by: Boaz Harrosh <bharrosh@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
1 parent 4056c9a commit a600ffc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎include/linux/sunrpc/debug.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828

2929
#ifdef __KERNEL__
3030

31-
#include <linux/timer.h>
32-
#include <linux/workqueue.h>
33-
3431
/*
3532
* Enable RPC debugging/profiling.
3633
*/

‎include/linux/sunrpc/rpc_rdma.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#ifndef _LINUX_SUNRPC_RPC_RDMA_H
4141
#define _LINUX_SUNRPC_RPC_RDMA_H
4242

43+
#include <linux/types.h>
44+
4345
struct rpcrdma_segment {
4446
__be32 rs_handle; /* Registered memory handle */
4547
__be32 rs_length; /* Length of the chunk in bytes */

0 commit comments

Comments
 (0)