Skip to content

Commit 1af0422

Browse files
committed
Sanitise linux/sunrpc/debug.h for userspace consumption
Move some inclusion of private header files and the definition of RPC_DEBUG inside the existing #ifdef __KERNEL__ Signed-off-by: David Woodhouse <dwmw2@infradead.org>
1 parent eae19a7 commit 1af0422

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

‎include/linux/sunrpc/debug.h‎

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,6 @@
99
#ifndef _LINUX_SUNRPC_DEBUG_H_
1010
#define _LINUX_SUNRPC_DEBUG_H_
1111

12-
#include <linux/config.h>
13-
14-
#include <linux/timer.h>
15-
#include <linux/workqueue.h>
16-
17-
/*
18-
* Enable RPC debugging/profiling.
19-
*/
20-
#ifdef CONFIG_SYSCTL
21-
#define RPC_DEBUG
22-
#endif
23-
/* #define RPC_PROFILE */
24-
2512
/*
2613
* RPC debug facilities
2714
*/
@@ -40,6 +27,18 @@
4027
#define RPCDBG_ALL 0x7fff
4128

4229
#ifdef __KERNEL__
30+
#include <linux/config.h>
31+
32+
#include <linux/timer.h>
33+
#include <linux/workqueue.h>
34+
35+
/*
36+
* Enable RPC debugging/profiling.
37+
*/
38+
#ifdef CONFIG_SYSCTL
39+
#define RPC_DEBUG
40+
#endif
41+
/* #define RPC_PROFILE */
4342

4443
/*
4544
* Debugging macros etc

0 commit comments

Comments
 (0)