Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>

authored by

Christoph Hellwig and committed by
J. Bruce Fields
fb7dd0a1 d05a0201

-8
-4
include/linux/lockd/debug.h
··· 10 10 #ifndef LINUX_LOCKD_DEBUG_H 11 11 #define LINUX_LOCKD_DEBUG_H 12 12 13 - #ifdef __KERNEL__ 14 - 15 13 #include <linux/sunrpc/debug.h> 16 14 17 15 /* ··· 22 24 #else 23 25 # define ifdebug(flag) if (0) 24 26 #endif 25 - 26 - #endif /* __KERNEL__ */ 27 27 28 28 /* 29 29 * Debug flags
-4
include/linux/lockd/lockd.h
··· 10 10 #ifndef LINUX_LOCKD_LOCKD_H 11 11 #define LINUX_LOCKD_LOCKD_H 12 12 13 - #ifdef __KERNEL__ 14 - 15 13 #include <linux/in.h> 16 14 #include <linux/in6.h> 17 15 #include <net/ipv6.h> ··· 370 372 } 371 373 372 374 extern const struct lock_manager_operations nlmsvc_lock_operations; 373 - 374 - #endif /* __KERNEL__ */ 375 375 376 376 #endif /* LINUX_LOCKD_LOCKD_H */