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>
This commit is contained in:
Robert P. J. Day 2008-04-01 21:48:37 -04:00 committed by J. Bruce Fields
parent 4ab4b0bedd
commit a5ae039892
3 changed files with 2 additions and 7 deletions

View file

@ -1,6 +1,6 @@
unifdef-y += const.h unifdef-y += const.h
unifdef-y += debug.h
unifdef-y += export.h unifdef-y += export.h
unifdef-y += nfsfh.h
unifdef-y += stats.h unifdef-y += stats.h
unifdef-y += syscall.h unifdef-y += syscall.h
unifdef-y += nfsfh.h
unifdef-y += debug.h

View file

@ -10,7 +10,6 @@
#ifndef NFSCACHE_H #ifndef NFSCACHE_H
#define NFSCACHE_H #define NFSCACHE_H
#ifdef __KERNEL__
#include <linux/in.h> #include <linux/in.h>
#include <linux/uio.h> #include <linux/uio.h>
@ -77,5 +76,4 @@ void nfsd_reply_cache_shutdown(void);
int nfsd_cache_lookup(struct svc_rqst *, int); int nfsd_cache_lookup(struct svc_rqst *, int);
void nfsd_cache_update(struct svc_rqst *, int, __be32 *); void nfsd_cache_update(struct svc_rqst *, int, __be32 *);
#endif /* __KERNEL__ */
#endif /* NFSCACHE_H */ #endif /* NFSCACHE_H */

View file

@ -27,7 +27,6 @@
#define NFSD_VERSION "0.5" #define NFSD_VERSION "0.5"
#define NFSD_SUPPORTED_MINOR_VERSION 0 #define NFSD_SUPPORTED_MINOR_VERSION 0
#ifdef __KERNEL__
/* /*
* Special flags for nfsd_permission. These must be different from MAY_READ, * Special flags for nfsd_permission. These must be different from MAY_READ,
* MAY_WRITE, and MAY_EXEC. * MAY_WRITE, and MAY_EXEC.
@ -334,6 +333,4 @@ extern struct timeval nfssvc_boot;
#endif /* CONFIG_NFSD_V4 */ #endif /* CONFIG_NFSD_V4 */
#endif /* __KERNEL__ */
#endif /* LINUX_NFSD_NFSD_H */ #endif /* LINUX_NFSD_NFSD_H */