mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Casey Schaufler <casey@schaufler-ca.com>
To: Jordan Glover <Golden_Miller83@protonmail.ch>,
	LSM List <linux-security-module@vger.kernel.org>
Cc: "SMACK-discuss@lists.01.org" <SMACK-discuss@lists.01.org>,
	Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>,
	"Schaufler, Casey" <casey.schaufler@intel.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Casey Schaufler <casey@schaufler-ca.com>
Subject: Re: [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’
Date: Mon, 6 Apr 2020 08:46:33 -0700	[thread overview]
Message-ID: <1261c28e-3de5-8122-d3db-fa78fb89e34a@schaufler-ca.com> (raw)
In-Reply-To: <lTqravVBK9-oBbja6fvn3DqA3lv42gF_wg4Q9fC0FhfG1DbinZb4oKl7JV_meJYykJtkvN2gXhy-bCAgIlRglRT2z-oQ6wFF6aPx2vo-ZAs=@protonmail.ch>

On 4/6/2020 5:02 AM, Jordan Glover wrote:
> Hello, during build of Linux 5.6.2 (also happened on 5.5.x series)
> gcc (9.3) prints following warning:
>
> security/smack/smack_lsm.c: In function ‘smack_socket_connect’:
> security/smack/smack_lsm.c:2838:24: warning: unused variable ‘sip’ [-Wunused-variable]
>  2838 |   struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap;
>
> My kernel has set CONFIG_IPV6=n during build.

Thank you for reporting this.

>
> Jordan
>
>
>
>
>

      reply	other threads:[~2020-04-06 15:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06 12:02 Jordan Glover
2020-04-06 15:46 ` Casey Schaufler [this message]

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=1261c28e-3de5-8122-d3db-fa78fb89e34a@schaufler-ca.com \
    --to=casey@schaufler-ca.com \
    --cc=Golden_Miller83@protonmail.ch \
    --cc=SMACK-discuss@lists.01.org \
    --cc=casey.schaufler@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=penguin-kernel@i-love.sakura.ne.jp \
    /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

all inboxes | Powered by JetHome®