From: Stephen Rothwell Subject: Re: [GIT PULL -tip] fix 33 make headers_check warnings Date: Mon, 19 Jan 2009 11:24:29 +1100 Message-ID: <20090119112429.78f5dc33.sfr@canb.auug.org.au> References: <1232223441.3966.22.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__19_Jan_2009_11_24_29_+1100_YrWGFK.9COO2jjcI" Return-path: In-Reply-To: <1232223441.3966.22.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Jaswinder Singh Rajput Cc: Ingo Molnar , x86 maintainers , urs.thuermann-l29pVbxQd1IUtdQbppsyvg@public.gmane.org, oliver.hartkopp-l29pVbxQd1IUtdQbppsyvg@public.gmane.org, linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netfilter-devel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netfilter-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, bfields-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org, neilb-l3A5Bk7waGM@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-raid-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, greg-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org, linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, tiwai-l3A5Bk7waGM@public.gmane.org, mchehab-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, LKML , Andrew Morton List-Id: linux-raid.ids --Signature=_Mon__19_Jan_2009_11_24_29_+1100_YrWGFK.9COO2jjcI Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 18 Jan 2009 01:47:21 +0530 Jaswinder Singh Rajput wrote: > > diff --git a/include/linux/nfsd/stats.h b/include/linux/nfsd/stats.h > index 7678cfb..0b53cfe 100644 > --- a/include/linux/nfsd/stats.h > +++ b/include/linux/nfsd/stats.h > @@ -29,9 +29,11 @@ struct nfsd_stats { > unsigned int ra_size; /* size of ra cache */ > unsigned int ra_depth[11]; /* number of times ra entry was found that d= eep > * in the cache (10percentiles). [10] =3D not found */ > +#ifdef __KERNEL__ > #ifdef CONFIG_NFSD_V4 > unsigned int nfs4_opcount[LAST_NFS4_OP + 1]; /* count of individual nfs= v4 operations */ > #endif > +#endif /* __KERNEL__ */ > =20 > }; The only variable in the kernel of type "struct nfsd_stats" is only exported to user mode via procfs, so this whole structure could probably go inside __KERNEL__. Then looking harder, I wonder if this header should be exported to user mode at all. --=20 Cheers, Stephen Rothwell sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org http://www.canb.auug.org.au/~sfr/ --Signature=_Mon__19_Jan_2009_11_24_29_+1100_YrWGFK.9COO2jjcI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAklzyD0ACgkQjjKRsyhoI8yt9QCgmEHLhNSAB2fYNfqbvgl+WPEm rRoAnRBfynsNZYdMSfUK9yUqeTiWdV62 =eQRT -----END PGP SIGNATURE----- --Signature=_Mon__19_Jan_2009_11_24_29_+1100_YrWGFK.9COO2jjcI-- -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html