kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: For whoever wants to fix an unused variable in netfilter
Date: Sat, 31 May 2014 16:57:37 -0400	[thread overview]
Message-ID: <51786.1401569857@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Sat, 31 May 2014 03:45:29 -0300." <CACz=WedJYsgYkE0W+928AGs0+YwVySc3BwBzejVQaFF8gDvtAw@mail.gmail.com>

On Sat, 31 May 2014 03:45:29 -0300, Raphael S Carvalho said:
> net/netfilter/nfnetlink.c: In function 'nfnetlink_rcv':
> net/netfilter/nfnetlink.c:363:14: warning: unused variable 'net'
> [-Wunused-variable]
>   struct net *net = sock_net(skb->sk);
>               ^

Of course, the real fun starts when the variable is unused in
some configs and not in others (usually doe to #ifdef-ery)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140531/b18d9eb8/attachment.bin 

  reply	other threads:[~2014-05-31 20:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-31  6:45 For whoever wants to fix an unused variable in netfilter Raphael S Carvalho
2014-05-31 20:57 ` Valdis.Kletnieks at vt.edu [this message]
2014-06-03 12:27 ` Luca Ellero

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=51786.1401569857@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).