Fix a build warning about leaking CONFIG_NFSD to userspace.
authorGreg Banks <gnb@sgi.com>
Thu, 26 Mar 2009 15:32:47 +0000 (02:32 +1100)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 27 Mar 2009 23:48:36 +0000 (19:48 -0400)
Fix a build warning about leaking CONFIG_NFSD to userspace.

The nfsd_stats data structure does not need to be available to
userspace; no kernel interface uses it.  So move it inside #ifdef
__KERNEL__ and the warning goes away.

Signed-off-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
include/linux/nfsd/stats.h

index 7678cfb..2693ef6 100644 (file)
 
 #include <linux/nfs4.h>
 
+/* thread usage wraps very million seconds (approx one fortnight) */
+#define        NFSD_USAGE_WRAP (HZ*1000000)
+
+#ifdef __KERNEL__
+
 struct nfsd_stats {
        unsigned int    rchits;         /* repcache hits */
        unsigned int    rcmisses;       /* repcache hits */
@@ -35,10 +40,6 @@ struct nfsd_stats {
 
 };
 
-/* thread usage wraps very million seconds (approx one fortnight) */
-#define        NFSD_USAGE_WRAP (HZ*1000000)
-
-#ifdef __KERNEL__
 
 extern struct nfsd_stats       nfsdstats;
 extern struct svc_stat         nfsd_svcstats;