Re: [PATCH] Fix a build warning about leaking CONFIG_NFSD to userspace.

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

 



On Fri, Mar 27, 2009 at 02:32:47AM +1100, Greg Banks wrote:
> 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@xxxxxxx>

Thanks, applied.--b.

> ---
> 
>  include/linux/nfsd/stats.h |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> Index: bfields/include/linux/nfsd/stats.h
> ===================================================================
> --- bfields.orig/include/linux/nfsd/stats.h
> +++ bfields/include/linux/nfsd/stats.h
> @@ -11,6 +11,11 @@
>  
>  #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;
> 
> 
> -- 
> Greg Banks, P.Engineer, SGI Australian Software Group.
> the brightly coloured sporks of revolution.
> I don't speak for SGI.
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux