Re: [SMACK] Build-time warning from Linux 5.6.2: unused variable ‘sip’

Casey Schaufler casey at schaufler-ca.com
Mon Apr 6 15:46:33 UTC 2020


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



More information about the Linux-security-module-archive mailing list