Skip to content

Commit

Permalink
[PATCH] Fix linux/nfsd/const.h for make headers_check
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Cedric Le Goater authored and Linus Torvalds committed Oct 4, 2006
1 parent 42ca099 commit f7aa263
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/linux/nfsd/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +28,8 @@

#ifdef __KERNEL__

#include <linux/sunrpc/msg_prot.h>

#ifndef NFS_SUPER_MAGIC
# define NFS_SUPER_MAGIC 0x6969
#endif
Expand Down

0 comments on commit f7aa263

Please sign in to comment.