Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1240158 > unrolled thread

linux-next: build warning after merge of the audit tree

Started byStephen Rothwell <sfr@canb.auug.org.au>
First post2015-10-06 07:50 +0200
Last post2015-10-06 19:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  linux-next: build warning after merge of the audit tree Stephen Rothwell <sfr@canb.auug.org.au> - 2015-10-06 07:50 +0200
    Re: linux-next: build warning after merge of the audit tree Paul Moore <paul@paul-moore.com> - 2015-10-06 19:30 +0200

#1240158 — linux-next: build warning after merge of the audit tree

FromStephen Rothwell <sfr@canb.auug.org.au>
Date2015-10-06 07:50 +0200
Subjectlinux-next: build warning after merge of the audit tree
Message-ID<qgtip-5mv-3@gated-at.bofh.it>
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1240778

FromPaul Moore <paul@paul-moore.com>
Date2015-10-06 19:30 +0200
Message-ID<qgEdQ-4lc-21@gated-at.bofh.it>
In reply to#1240158
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web