diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 10:16:44 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 10:16:44 -0400 |
commit | 1af042271f9bf7601f7ecf4d328ccde3a44d2c72 (patch) | |
tree | 9c1dea25088aed63a29b2f759edfb6fbca2a186c /include/linux/sunrpc | |
parent | eae19a762de975e109394b1edcba6587323c7d1a (diff) |
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>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/debug.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index 1a42d902bc11..e0cae8deb465 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
@@ -9,19 +9,6 @@ | |||
9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ | 9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ |
10 | #define _LINUX_SUNRPC_DEBUG_H_ | 10 | #define _LINUX_SUNRPC_DEBUG_H_ |
11 | 11 | ||
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 | |||
25 | /* | 12 | /* |
26 | * RPC debug facilities | 13 | * RPC debug facilities |
27 | */ | 14 | */ |
@@ -40,6 +27,18 @@ | |||
40 | #define RPCDBG_ALL 0x7fff | 27 | #define RPCDBG_ALL 0x7fff |
41 | 28 | ||
42 | #ifdef __KERNEL__ | 29 | #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 */ | ||
43 | 42 | ||
44 | /* | 43 | /* |
45 | * Debugging macros etc | 44 | * Debugging macros etc |