Subject: Problems w/ CONFIG_BLK_DEV_MPC8xx_IDE

From: Steven Scholz <[email-masked]>
Date: Mon, 15 Sep 2003 09:40:44 +0200

Hi there,

I just noticed that the vanilla 2.4.22 does not compile with
CONFIG_BLK_DEV_MPC8xx_IDE:

drivers/ide/idedriver.o: In function `ide_timer_expiry':
drivers/ide/idedriver.o(.text+0xaa30): undefined reference to `ide_ack_intr'
drivers/ide/idedriver.o(.text+0xaa30): relocation truncated to fit: R_PPC_REL24

It's the same for the BK trees.

The attached patch fixes that.

Please apply and forward it.

Thanks a million,

Steven
--- include/asm-ppc/ide.h.FIX	Mon Sep 15 09:35:25 2003
+++ include/asm-ppc/ide.h	Mon Sep 15 09:36:17 2003
@@ -110,6 +110,7 @@
  */
 #if (defined CONFIG_APUS || defined CONFIG_BLK_DEV_MPC8xx_IDE)
 #define IDE_ARCH_ACK_INTR 1
+#define ide_ack_intr(hwif)	((hwif)->hw.ack_intr ? (hwif)->hw.ack_intr(hwif) : 1)
 #endif

 #endif /* __KERNEL__ */