linux-security-module.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’
@ 2020-04-06 12:02 Jordan Glover
  2020-04-06 15:46 ` Casey Schaufler
  0 siblings, 1 reply; 2+ messages in thread
From: Jordan Glover @ 2020-04-06 12:02 UTC (permalink / raw)
  To: LSM List
  Cc: SMACK-discuss, Casey Schaufler, Tetsuo Handa, Schaufler, Casey, LKML

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.

Jordan






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’
  2020-04-06 12:02 [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’ Jordan Glover
@ 2020-04-06 15:46 ` Casey Schaufler
  0 siblings, 0 replies; 2+ messages in thread
From: Casey Schaufler @ 2020-04-06 15:46 UTC (permalink / raw)
  To: Jordan Glover, LSM List
  Cc: SMACK-discuss, Tetsuo Handa, Schaufler, Casey, LKML, Casey Schaufler

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
>
>
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-06 15:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 12:02 [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’ Jordan Glover
2020-04-06 15:46 ` Casey Schaufler

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).