[PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c

Nathan Lynch ntl at pobox.com
Tue Mar 22 03:45:17 EST 2005


On Mon, Mar 21, 2005 at 04:19:01PM +0100, Mikael Pettersson wrote:
> Compiling 2.6.12-rc1-mm1 for ppc64 fails with:
> 
> arch/ppc64/kernel/prom.c:1691: error: syntax error before 'prom_reconfig_notifier'
> arch/ppc64/kernel/prom.c:1692: error: field name not in record or union initializer
> arch/ppc64/kernel/prom.c:1692: error: (near initialization for 'prom_reconfig_nb')
> arch/ppc64/kernel/prom.c:1692: warning: initialization makes pointer from integer without a cast
> make[1]: *** [arch/ppc64/kernel/prom.o] Error 1
> make: *** [arch/ppc64/kernel] Error 2
> 
> Fix: repair the obvious syntax error (missing "=").

Thanks for the fix; the mistake was mine.  Lest Andrew and Paulus
think I'm sending untested patches, the compiler I'm using (gcc
3.3.3-hammer) does not give an error or even a warning.  Sorry for the
inconvenience; I'll have to upgrade to a less forgiving version of
gcc.


Nathan



More information about the Linuxppc64-dev mailing list