mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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>
This commit is contained in:
parent
d05a020196
commit
fb7dd0a1ba
@ -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
|
||||
*/
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user