public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* linux-next: build warning after merge of the security-testing tree
@ 2010-03-10  4:31 Stephen Rothwell
  2010-03-15 21:50 ` James Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2010-03-10  4:31 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, Stephen Hemminger

[-- Attachment #1: Type: text/plain, Size: 517 bytes --]

Hi James,

After merging the security-testing tree, today's linux-next build (x86_64
allmodconfig) produced this warning:

scripts/selinux/genheaders/genheaders.c: In function 'main':
scripts/selinux/genheaders/genheaders.c:84: warning: initialization discards qualifiers from pointer target type

Introduced by commit 634a539e16bd7a1ba31c3f832baa725565cc9f96 ("selinux:
const strings in tables").

-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: linux-next: build warning after merge of the security-testing tree
  2010-03-10  4:31 linux-next: build warning after merge of the security-testing tree Stephen Rothwell
@ 2010-03-15 21:50 ` James Morris
  2010-03-15 22:27   ` Stephen Rothwell
  0 siblings, 1 reply; 4+ messages in thread
From: James Morris @ 2010-03-15 21:50 UTC (permalink / raw)
  To: Stephen Rothwell; +Cc: linux-next, linux-kernel, Stephen Hemminger

On Wed, 10 Mar 2010, Stephen Rothwell wrote:

> Hi James,
> 
> After merging the security-testing tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
> 
> scripts/selinux/genheaders/genheaders.c: In function 'main':
> scripts/selinux/genheaders/genheaders.c:84: warning: initialization discards qualifiers from pointer target type
> 
> Introduced by commit 634a539e16bd7a1ba31c3f832baa725565cc9f96 ("selinux:
> const strings in tables").

Thanks, fix applied per below.

commit 310de047eef6685274045db1e6b39c9f313df428
Author: James Morris <jmorris@namei•org>
Date:   Tue Mar 16 08:47:36 2010 +1100

    selinux: fix warning in genheaders
    
    Fix const warning in the genheaders script as a result of
    changes to the headers, as noted here:
    
    http://linux.derkeiler.com/Mailing-Lists/Kernel/2010-03/msg03977.html
    
    Reported-by: Stephen Rothwell <sfr@canb•auug.org.au>
    Signed-off-by: James Morris <jmorris@namei•org>

diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c
index 2462696..58a12c2 100644
--- a/scripts/selinux/genheaders/genheaders.c
+++ b/scripts/selinux/genheaders/genheaders.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
 	fprintf(fout, "\n");
 
 	for (i = 1; i < isids_len; i++) {
-		char *s = initial_sid_to_string[i];
+		const char *s = initial_sid_to_string[i];
 		fprintf(fout, "#define SECINITSID_%s", s);
 		for (j = 0; j < max(1, 40 - strlen(s)); j++)
 			fprintf(fout, " ");

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

* Re: linux-next: build warning after merge of the security-testing tree
  2010-03-15 21:50 ` James Morris
@ 2010-03-15 22:27   ` Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2010-03-15 22:27 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, Stephen Hemminger

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]

Hi James,

On Tue, 16 Mar 2010 08:50:32 +1100 (EST) James Morris <jmorris@namei•org> wrote:
>
> Thanks, fix applied per below.
> 
> commit 310de047eef6685274045db1e6b39c9f313df428
> Author: James Morris <jmorris@namei•org>
> Date:   Tue Mar 16 08:47:36 2010 +1100
> 
>     selinux: fix warning in genheaders

Thanks.

-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

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

* linux-next: build warning after merge of the security-testing tree
@ 2011-08-10  1:02 Stephen Rothwell
  0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2011-08-10  1:02 UTC (permalink / raw)
  To: James Morris; +Cc: linux-next, linux-kernel, Mimi Zohar

[-- Attachment #1: Type: text/plain, Size: 529 bytes --]

Hi James,

After merging the security-testing tree, today's linux-next build
(powerpc ppc64_defconfig) produced these warning:

include/linux/evm.h:48:12: warning: 'evm_inode_setattr' defined but not used
include/linux/evm.h:48:12: warning: 'evm_inode_setattr' defined but not used

Introduced by commit 817b54aa45db ("evm: add evm_inode_setattr to prevent
updating an invalid security.evm").  "inline" missing.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

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

end of thread, other threads:[~2011-08-10  1:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-10  4:31 linux-next: build warning after merge of the security-testing tree Stephen Rothwell
2010-03-15 21:50 ` James Morris
2010-03-15 22:27   ` Stephen Rothwell
  -- strict thread matches above, loose matches on Subject: below --
2011-08-10  1:02 Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox