Skip to contentSkip to conversation

Fix ppc32 compile (Was: Re: prep_setup.c syntax error)

PATCH New Tom Rini 1 participant 1 message Oct 28, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Tom Rini

author
#1 lore raw

PATCH 1/1 Fix ppc32 compile (Was: Re: prep_setup.c syntax error)

Quoted 6 lines · Olaf Hering

the last patch doesnt compile.

linux-2.6.10-rc1-bk7/arch/ppc/platforms/prep_setup.c:967: error: parse error before "return"

http://linux.bkbits.net:8080/linux-2.5/gnupatch@41801ba70RWW4DIxeswrgPg6ExEg2w

D'oh. Something got cut-off there on Randy's end. Obviously correct fix follows.

arch/ppc/platforms/prep_setup.c +2 -1
@@ -964,7 +964,8 @@
 	if (OpenPIC_Addr != NULL)
 		/* We have a cascade on OpenPIC IRQ 0, Linux IRQ 16 */
 		openpic_hookup_cascade(NUM_8259_INTERRUPTS, "82c59 cascade",
-				return 0;
+				i8259_irq);
+	return 0;
 }
 arch_initcall(prep_request_cascade);
 
Signature · 2 lines
Tom Rini
http://gate.crashing.org/~trini/