]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
alpha: fix compile failures with gcc-4.3 (bug #10438)
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>
Fri, 20 Jun 2008 23:28:31 +0000 (03:28 +0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 Jun 2008 23:46:10 +0000 (16:46 -0700)
commitd559d4a24a3fed75bd890abcc1f95cd8d8dad6e1
tree2f920b9fc7a7bed1ce857474505793fe1431eac3
parentede426923b25414f5ec9c00fefe6727d9721dd13
alpha: fix compile failures with gcc-4.3 (bug #10438)

Vast majority of these build failures are gcc-4.3 warnings
about static functions and objects being referenced from
non-static (read: "extern inline") functions, in conjunction
with our -Werror.

We cannot just convert "extern inline" to "static inline",
as people keep suggesting all the time, because "extern inline"
logic is crucial for generic kernel build.
So
- just make sure that all callees of critical "extern inline"
  functions are also "extern inline";
- use "static inline", wherever it's possible.

traps.c: work around gcc-4.3 being too smart about array
bounds-checking.

TODO: add "gnu_inline" attribute to all our "extern inline"
functions to ensure desired behaviour with future compilers.

Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/core_t2.c
arch/alpha/kernel/traps.c
include/asm-alpha/core_mcpcia.h
include/asm-alpha/core_t2.h
include/asm-alpha/io.h
include/asm-alpha/mmu_context.h
include/asm-alpha/system.h
include/asm-alpha/vga.h