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

NFSD: Strip __KERNEL__ testing from unexported header files.

Also, sort the Kbuild file.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

authored by

Robert P. J. Day and committed by
J. Bruce Fields
a5ae0398 4ab4b0be

+2 -7
+2 -2
include/linux/nfsd/Kbuild
··· 1 1 unifdef-y += const.h 2 + unifdef-y += debug.h 2 3 unifdef-y += export.h 4 + unifdef-y += nfsfh.h 3 5 unifdef-y += stats.h 4 6 unifdef-y += syscall.h 5 - unifdef-y += nfsfh.h 6 - unifdef-y += debug.h
-2
include/linux/nfsd/cache.h
··· 10 10 #ifndef NFSCACHE_H 11 11 #define NFSCACHE_H 12 12 13 - #ifdef __KERNEL__ 14 13 #include <linux/in.h> 15 14 #include <linux/uio.h> 16 15 ··· 76 77 int nfsd_cache_lookup(struct svc_rqst *, int); 77 78 void nfsd_cache_update(struct svc_rqst *, int, __be32 *); 78 79 79 - #endif /* __KERNEL__ */ 80 80 #endif /* NFSCACHE_H */
-3
include/linux/nfsd/nfsd.h
··· 27 27 #define NFSD_VERSION "0.5" 28 28 #define NFSD_SUPPORTED_MINOR_VERSION 0 29 29 30 - #ifdef __KERNEL__ 31 30 /* 32 31 * Special flags for nfsd_permission. These must be different from MAY_READ, 33 32 * MAY_WRITE, and MAY_EXEC. ··· 332 333 | FATTR4_WORD1_TIME_ACCESS_SET | FATTR4_WORD1_TIME_METADATA | FATTR4_WORD1_TIME_MODIFY_SET) 333 334 334 335 #endif /* CONFIG_NFSD_V4 */ 335 - 336 - #endif /* __KERNEL__ */ 337 336 338 337 #endif /* LINUX_NFSD_NFSD_H */