Skip to content

Commit

Permalink
Sanitise linux/sunrpc/debug.h for userspace consumption
Browse files Browse the repository at this point in the history
Move some inclusion of private header files and the definition of
RPC_DEBUG inside the existing #ifdef __KERNEL__

Signed-off-by: David Woodhouse <[email protected]>
  • Loading branch information
dwmw2 committed Apr 25, 2006
1 parent eae19a7 commit 1af0422
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions include/linux/sunrpc/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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
Expand Down

0 comments on commit 1af0422

Please sign in to comment.