linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the audit tree
@ 2015-10-06  5:46 Stephen Rothwell
  2015-10-06 17:23 ` Paul Moore
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2015-10-06  5:46 UTC (permalink / raw)
  To: Paul Moore; +Cc: linux-next, linux-kernel

Hi Paul,

After merging the audit tree, today's linux-next build (i386 defconfig
and others) produced this warning:

security/lsm_audit.c: In function 'dump_common_audit_data':
security/lsm_audit.c:340:9: warning: passing argument 1 of 'unix_sk' discards 'const' qualifier from pointer target type
     u = unix_sk(sk);
         ^
In file included from security/lsm_audit.c:22:0:
include/net/af_unix.h:67:33: note: expected 'struct sock *' but argument is of type 'const struct sock *'
 static inline struct unix_sock *unix_sk(struct sock *sk)
                                 ^

Introduced by commit

  43cfd5e38587 ("audit: constify parts of common_audit_data and lsm_network_audit")

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

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

* Re: linux-next: build warning after merge of the audit tree
  2015-10-06  5:46 linux-next: build warning after merge of the audit tree Stephen Rothwell
@ 2015-10-06 17:23 ` Paul Moore
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Moore @ 2015-10-06 17:23 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel

On Tue, Oct 6, 2015 at 1:46 AM, Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> Hi Paul,
>
> After merging the audit tree, today's linux-next build (i386 defconfig
> and others) produced this warning:
>
> security/lsm_audit.c: In function 'dump_common_audit_data':
> security/lsm_audit.c:340:9: warning: passing argument 1 of 'unix_sk' discards 'const' qualifier from pointer target type
>      u = unix_sk(sk);
>          ^
> In file included from security/lsm_audit.c:22:0:
> include/net/af_unix.h:67:33: note: expected 'struct sock *' but argument is of type 'const struct sock *'
>  static inline struct unix_sock *unix_sk(struct sock *sk)
>                                  ^
>
> Introduced by commit
>
>   43cfd5e38587 ("audit: constify parts of common_audit_data and lsm_network_audit")

Hi Stephen,

I apologize for the build warning, for some reason it works just fine
in audit#next but causes problems on top of more current trees.  I'm
going to drop the patch until I've resolved the issue.

-- 
paul moore
www.paul-moore.com

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

end of thread, other threads:[~2015-10-06 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-06  5:46 linux-next: build warning after merge of the audit tree Stephen Rothwell
2015-10-06 17:23 ` Paul Moore

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