[PATCH][2.6.12-rc1-mm1] fix compile error in ppc64 prom.c
Mikael Pettersson
mikpe at csd.uu.se
Tue Mar 22 02:19:01 EST 2005
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 "=").
Signed-off-by: Mikael Pettersson <mikpe at csd.uu.se>
--- linux-2.6.12-rc1-mm1/arch/ppc64/kernel/prom.c.~1~ 2005-03-21 14:48:51.000000000 +0100
+++ linux-2.6.12-rc1-mm1/arch/ppc64/kernel/prom.c 2005-03-21 15:14:19.000000000 +0100
@@ -1688,7 +1688,7 @@ static int prom_reconfig_notifier(struct
}
static struct notifier_block prom_reconfig_nb = {
- .notifier_call prom_reconfig_notifier,
+ .notifier_call = prom_reconfig_notifier,
.priority = 10, /* This one needs to run first */
};
More information about the Linuxppc64-dev
mailing list