linux-next build failure
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()
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 -0400convert the rest of
binfmt_elf_fdpictodump_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.
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 -0400convert the rest of
binfmt_elf_fdpictodump_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...