[PATCH -mm] fix linux/nfsd/const.h for make headers_check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



make headers_check fails on linux/nfsd/const.h. 

Since linux/sunrpc/msg_prot.h does not seem to export anything
interesting for userspace, this patch moves it in the __KERNEL__ 
protected section.

Cheers,

C.

Signed-off-by: Cedric Le Goater <[email protected]>
---
 include/linux/nfsd/const.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: 2.6.18-mm3/include/linux/nfsd/const.h
===================================================================
--- 2.6.18-mm3.orig/include/linux/nfsd/const.h
+++ 2.6.18-mm3/include/linux/nfsd/const.h
@@ -13,7 +13,6 @@
 #include <linux/nfs2.h>
 #include <linux/nfs3.h>
 #include <linux/nfs4.h>
-#include <linux/sunrpc/msg_prot.h>

 /*
  * Maximum protocol version supported by knfsd
@@ -29,6 +28,8 @@

 #ifdef __KERNEL__

+#include <linux/sunrpc/msg_prot.h>
+
 #ifndef NFS_SUPER_MAGIC
 # define NFS_SUPER_MAGIC       0x6969
 #endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux