Sanitise linux/sunrpc/debug.h for userspace consumption
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 25 Apr 2006 14:16:44 +0000 (15:16 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 25 Apr 2006 14:16:44 +0000 (15:16 +0100)
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>
include/linux/sunrpc/debug.h

index 1a42d902bc11e0bb9976177765a8ebcc0263648d..e0cae8deb465228681c8ed6b1544c9cbdb058bda 100644 (file)
@@ -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
  */
 #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