Skip to content

Commit fb7dd0a

Browse files
Christoph HellwigJ. Bruce Fields
authored andcommitted
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 <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent d05a020 commit fb7dd0a

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

include/linux/lockd/debug.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#ifndef LINUX_LOCKD_DEBUG_H
1111
#define LINUX_LOCKD_DEBUG_H
1212

13-
#ifdef __KERNEL__
14-
1513
#include <linux/sunrpc/debug.h>
1614

1715
/*
@@ -25,8 +23,6 @@
2523
# define ifdebug(flag) if (0)
2624
#endif
2725

28-
#endif /* __KERNEL__ */
29-
3026
/*
3127
* Debug flags
3228
*/

include/linux/lockd/lockd.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
#ifndef LINUX_LOCKD_LOCKD_H
1111
#define LINUX_LOCKD_LOCKD_H
1212

13-
#ifdef __KERNEL__
14-
1513
#include <linux/in.h>
1614
#include <linux/in6.h>
1715
#include <net/ipv6.h>
@@ -373,6 +371,4 @@ static inline int nlm_compare_locks(const struct file_lock *fl1,
373371

374372
extern const struct lock_manager_operations nlmsvc_lock_operations;
375373

376-
#endif /* __KERNEL__ */
377-
378374
#endif /* LINUX_LOCKD_LOCKD_H */

0 commit comments

Comments
 (0)