[PATCH][2.6.11-rc3] gcc-4.0 fixes for ppc32

Tom Rini trini at kernel.crashing.org
Thu Feb 10 04:34:50 EST 2005


On Wed, Feb 09, 2005 at 04:46:51PM +0100, Mikael Pettersson wrote:
> These patches are needed to allow me to build a working
> 2.6.11-rc3 kernel for ppc32 with gcc-4.0 (20050130 snapshot):
> 
> - The static time_offset in arch/ppc/kernel/time.c triggers a
>   declaration conflict with the non-static one in include/linux/timex.h.
>   Solution: s/time_offset/ppc_time_offset/g in ppc's time.c.
> - OpenPIC is declared extern in open_pic_defs.h but static in
>   open_pic.c. Solution: remove the extern decl.
> - prom_display_paths[] and prom_num_displays are declared extern in
>   include/asm-ppc/prom.h but static in arch/ppc/syslib/prom_init.c.
>   Solution: remove the extern decls.
> - The 'const' on __USE_RTC() in include/asm-ppc/time.h triggers
>   compiler warnings. Change it to use compiler.h's __attribute_const__.
>   (This mirrors changes that have already been made in e.g. byteorder.h.)
> 
> Tested on an eMac. No breakage observed.
> 
> Signed-off-by: Mikael Pettersson <mikpe at csd.uu.se>

This all looks fine to me, will send once 2.6.12-rc1 opens.

-- 
Tom Rini
http://gate.crashing.org/~trini/



More information about the Linuxppc-dev mailing list