lockd: remove __KERNEL__ ifdefs
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Nov 2019 15:34:23 +0000 (16:34 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 12 Nov 2019 16:43:29 +0000 (11:43 -0500)
Remove the __KERNEL__ ifdefs from the non-UAPI sunrpc headers,
as those can't be included from user space programs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/lockd/debug.h
include/linux/lockd/lockd.h

index e536c579827f116bf819c76a50467056ae51affc..eede2ab5246f4f1e938396b9500bb5590acaf2be 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef LINUX_LOCKD_DEBUG_H
 #define LINUX_LOCKD_DEBUG_H
 
-#ifdef __KERNEL__
-
 #include <linux/sunrpc/debug.h>
 
 /*
@@ -25,8 +23,6 @@
 # define ifdebug(flag)         if (0)
 #endif
 
-#endif /* __KERNEL__ */
-
 /*
  * Debug flags
  */
index d294dde9e546b572fc9bae91aa55e1ce75db1a28..666f5f310a04190928086f1e2e9c4bc69e6bf052 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef LINUX_LOCKD_LOCKD_H
 #define LINUX_LOCKD_LOCKD_H
 
-#ifdef __KERNEL__
-
 #include <linux/in.h>
 #include <linux/in6.h>
 #include <net/ipv6.h>
@@ -373,6 +371,4 @@ static inline int nlm_compare_locks(const struct file_lock *fl1,
 
 extern const struct lock_manager_operations nlmsvc_lock_operations;
 
-#endif /* __KERNEL__ */
-
 #endif /* LINUX_LOCKD_LOCKD_H */