From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Slusarz Date: Thu, 30 Oct 2008 19:12:03 +0000 Subject: Re: Confusion about unused variable warnings during kernel build. Message-Id: <20081030191157.GA5836@joi> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: kernel-janitors@vger.kernel.org On Wed, Oct 29, 2008 at 11:51:20AM +0530, Manish Katiyar wrote: > Hi, > > Occasionally during kernel builds I get some unused variable warnings. > But when I go and check the code the variable is getting used. > Interestingly I have seen this problem only with the file symbols > exported from fs/locks.c. An example of such errors is > > fs/lockd/svclock.c:719: warning: unused variable 'file' > fs/nfsd/nfsxdr.c:154: warning: unused variable 'dentry' > fs/nfsd/nfs4state.c:1626: warning: unused variable 'flp' Check the definition of functions which "use" these variables. Marcin