Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42d671c7 authored by Greg Banks's avatar Greg Banks Committed by J. Bruce Fields
Browse files

Fix a build warning about leaking CONFIG_NFSD to userspace.



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: default avatarGreg Banks <gnb@sgi.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent b5cbc369
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -11,6 +11,11 @@


#include <linux/nfs4.h>
#include <linux/nfs4.h>


/* thread usage wraps very million seconds (approx one fortnight) */
#define	NFSD_USAGE_WRAP	(HZ*1000000)

#ifdef __KERNEL__

struct nfsd_stats {
struct nfsd_stats {
	unsigned int	rchits;		/* repcache hits */
	unsigned int	rchits;		/* repcache hits */
	unsigned int	rcmisses;	/* 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 nfsd_stats	nfsdstats;
extern struct svc_stat		nfsd_svcstats;
extern struct svc_stat		nfsd_svcstats;