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>
This commit is contained in:
parent
eae19a762d
commit
1af042271f
1 changed files with 12 additions and 13 deletions
|
@ -9,19 +9,6 @@
|
|||
#ifndef _LINUX_SUNRPC_DEBUG_H_
|
||||
#define _LINUX_SUNRPC_DEBUG_H_
|
||||
|
||||
#include <linux/config.h>
|
||||
|
||||
#include <linux/timer.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
/*
|
||||
* Enable RPC debugging/profiling.
|
||||
*/
|
||||
#ifdef CONFIG_SYSCTL
|
||||
#define RPC_DEBUG
|
||||
#endif
|
||||
/* #define RPC_PROFILE */
|
||||
|
||||
/*
|
||||
* RPC debug facilities
|
||||
*/
|
||||
|
@ -40,6 +27,18 @@
|
|||
#define RPCDBG_ALL 0x7fff
|
||||
|
||||
#ifdef __KERNEL__
|
||||
#include <linux/config.h>
|
||||
|
||||
#include <linux/timer.h>
|
||||
#include <linux/workqueue.h>
|
||||
|
||||
/*
|
||||
* Enable RPC debugging/profiling.
|
||||
*/
|
||||
#ifdef CONFIG_SYSCTL
|
||||
#define RPC_DEBUG
|
||||
#endif
|
||||
/* #define RPC_PROFILE */
|
||||
|
||||
/*
|
||||
* Debugging macros etc
|
||||
|
|
Loading…
Reference in a new issue