Skip to contentSkip to conversation

linux-next build failure

DISCUSSION Mark Salter 2 participants 3 messages May 12, 2014 Linux-next tree

lore
Share & tools
lore
#0 lore raw

I'm seeing a build failure in linux-net for c6x (!CONFIG_MMU):

fs/binfmt_elf_fdpic.c: In function ‘elf_fdpic_dump_segments’:
fs/binfmt_elf_fdpic.c:1490:17: warning: unused variable ‘addr’ [-Wunused-variable]

     unsigned long addr;
                 ^

This was introduced by this patch:

Author: Al Viro <[email protected]>
Date: Sat Oct 5 18:58:47 2013 -0400

convert the rest of binfmt_elf_fdpic to dump_emit()

#1 lore raw
Quoted 4 lines · Mark Salter

I'm seeing a build failure in linux-net for c6x (!CONFIG_MMU):

fs/binfmt_elf_fdpic.c: In function ‘elf_fdpic_dump_segments’:
fs/binfmt_elf_fdpic.c:1490:17: warning: unused variable ‘addr’ [-Wunused-variable]

Quoted 10 lines
     unsigned long addr;
                 ^

This was introduced by this patch:

Author: Al Viro <[email protected]>
Date: Sat Oct 5 18:58:47 2013 -0400

convert the rest of binfmt_elf_fdpic to dump_emit()

Of course, this is just a warning and not an error. My build failed and the above was at the bottom of the log, but that was only because of the -j flag. The actual failure was elsewhere.

#2 lore raw
In reply to Mark Salter
Quoted 4 lines · Mark Salter

I'm seeing a build failure in linux-net for c6x (!CONFIG_MMU):

fs/binfmt_elf_fdpic.c: In function ‘elf_fdpic_dump_segments’:
fs/binfmt_elf_fdpic.c:1490:17: warning: unused variable ‘addr’ [-Wunused-variable]

Quoted 8 lines
     unsigned long addr;
                 ^

This was introduced by this patch:

Author: Al Viro <[email protected]>
Date: Sat Oct 5 18:58:47 2013 -0400

convert the rest of binfmt_elf_fdpic to dump_emit()

... in the mainline since 3.13. What has changed in -next?

We could put ifndef CONFIG_MMU around that declaration, I guess...

PS: Pity that we can't really use -std=gnu99 - use of compound literals in initializers is too widespread ;-/ The last time I tried to do something about that, I gave up when I got to __pgprot() users; in principle, we could switch pgprot_t to a bitwise type and let sparse take care of the typechecking, but it was too much work to pull off. Might be worth trying again someday...