All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcin Slusarz <marcin.slusarz@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: Confusion about unused variable warnings during kernel build.
Date: Thu, 30 Oct 2008 19:12:03 +0000	[thread overview]
Message-ID: <20081030191157.GA5836@joi> (raw)
In-Reply-To: <ea11fea30810282321x4e54617dq5e7d273ac5ff131f@mail.gmail.com>

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

  parent reply	other threads:[~2008-10-30 19:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-29  6:33 Confusion about unused variable warnings during kernel build Manish Katiyar
2008-10-30 18:32 ` Mulyadi Santosa
2008-10-30 19:12 ` Marcin Slusarz [this message]
2008-10-31  1:53 ` Manish Katiyar
2008-10-31 13:45 ` Nick Andrew

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081030191157.GA5836@joi \
    --to=marcin.slusarz@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.