Commit fb7dd0a1 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by J. Bruce Fields

lockd: remove __KERNEL__ ifdefs

Remove the __KERNEL__ ifdefs from the non-UAPI sunrpc headers,
as those can't be included from user space programs.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent d05a0201
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#ifndef LINUX_LOCKD_DEBUG_H #ifndef LINUX_LOCKD_DEBUG_H
#define LINUX_LOCKD_DEBUG_H #define LINUX_LOCKD_DEBUG_H
#ifdef __KERNEL__
#include <linux/sunrpc/debug.h> #include <linux/sunrpc/debug.h>
/* /*
...@@ -25,8 +23,6 @@ ...@@ -25,8 +23,6 @@
# define ifdebug(flag) if (0) # define ifdebug(flag) if (0)
#endif #endif
#endif /* __KERNEL__ */
/* /*
* Debug flags * Debug flags
*/ */
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#ifndef LINUX_LOCKD_LOCKD_H #ifndef LINUX_LOCKD_LOCKD_H
#define LINUX_LOCKD_LOCKD_H #define LINUX_LOCKD_LOCKD_H
#ifdef __KERNEL__
#include <linux/in.h> #include <linux/in.h>
#include <linux/in6.h> #include <linux/in6.h>
#include <net/ipv6.h> #include <net/ipv6.h>
...@@ -373,6 +371,4 @@ static inline int nlm_compare_locks(const struct file_lock *fl1, ...@@ -373,6 +371,4 @@ static inline int nlm_compare_locks(const struct file_lock *fl1,
extern const struct lock_manager_operations nlmsvc_lock_operations; extern const struct lock_manager_operations nlmsvc_lock_operations;
#endif /* __KERNEL__ */
#endif /* LINUX_LOCKD_LOCKD_H */ #endif /* LINUX_LOCKD_LOCKD_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment