From: Daniel Drake https://bugs.gentoo.org/show_bug.cgi?id=254150 Disclaimer: I know nothing about alpha! Index: linux-2.6.28-gentoo/arch/alpha/kernel/Makefile =================================================================== --- linux-2.6.28-gentoo.orig/arch/alpha/kernel/Makefile +++ linux-2.6.28-gentoo/arch/alpha/kernel/Makefile @@ -57,7 +57,7 @@ obj-$(CONFIG_ALPHA_TITAN) += core_titan. obj-$(CONFIG_ALPHA_WILDFIRE) += core_wildfire.o # Board support -obj-$(CONFIG_ALPHA_ALCOR) += sys_alcor.o irq_i8259.o irq_srm.o +obj-$(CONFIG_ALPHA_ALCOR) += sys_alcor.o irq_i8259.o obj-$(CONFIG_ALPHA_CABRIOLET) += sys_cabriolet.o irq_i8259.o irq_srm.o \ ns87312.o obj-$(CONFIG_ALPHA_EB164) += sys_cabriolet.o irq_i8259.o irq_srm.o \ @@ -78,19 +78,19 @@ obj-$(CONFIG_ALPHA_JENSEN) += sys_jensen obj-$(CONFIG_ALPHA_MARVEL) += sys_marvel.o obj-$(CONFIG_ALPHA_MIATA) += sys_miata.o irq_pyxis.o irq_i8259.o \ es1888.o smc37c669.o -obj-$(CONFIG_ALPHA_MIKASA) += sys_mikasa.o irq_i8259.o irq_srm.o -obj-$(CONFIG_ALPHA_NAUTILUS) += sys_nautilus.o irq_i8259.o irq_srm.o +obj-$(CONFIG_ALPHA_MIKASA) += sys_mikasa.o irq_i8259.o +obj-$(CONFIG_ALPHA_NAUTILUS) += sys_nautilus.o irq_i8259.o obj-$(CONFIG_ALPHA_NORITAKE) += sys_noritake.o irq_i8259.o obj-$(CONFIG_ALPHA_RAWHIDE) += sys_rawhide.o irq_i8259.o obj-$(CONFIG_ALPHA_RUFFIAN) += sys_ruffian.o irq_pyxis.o irq_i8259.o obj-$(CONFIG_ALPHA_RX164) += sys_rx164.o irq_i8259.o obj-$(CONFIG_ALPHA_SABLE) += sys_sable.o obj-$(CONFIG_ALPHA_LYNX) += sys_sable.o -obj-$(CONFIG_ALPHA_BOOK1) += sys_sio.o irq_i8259.o irq_srm.o ns87312.o -obj-$(CONFIG_ALPHA_AVANTI) += sys_sio.o irq_i8259.o irq_srm.o ns87312.o -obj-$(CONFIG_ALPHA_NONAME) += sys_sio.o irq_i8259.o irq_srm.o ns87312.o -obj-$(CONFIG_ALPHA_P2K) += sys_sio.o irq_i8259.o irq_srm.o ns87312.o -obj-$(CONFIG_ALPHA_XL) += sys_sio.o irq_i8259.o irq_srm.o ns87312.o +obj-$(CONFIG_ALPHA_BOOK1) += sys_sio.o irq_i8259.o ns87312.o +obj-$(CONFIG_ALPHA_AVANTI) += sys_sio.o irq_i8259.o ns87312.o +obj-$(CONFIG_ALPHA_NONAME) += sys_sio.o irq_i8259.o ns87312.o +obj-$(CONFIG_ALPHA_P2K) += sys_sio.o irq_i8259.o ns87312.o +obj-$(CONFIG_ALPHA_XL) += sys_sio.o irq_i8259.o ns87312.o obj-$(CONFIG_ALPHA_SX164) += sys_sx164.o irq_pyxis.o irq_i8259.o \ irq_srm.o smc37c669.o obj-$(CONFIG_ALPHA_TAKARA) += sys_takara.o irq_i8259.o ns87312.o Index: linux-2.6.28-gentoo/arch/alpha/kernel/irq.c =================================================================== --- linux-2.6.28-gentoo.orig/arch/alpha/kernel/irq.c +++ linux-2.6.28-gentoo/arch/alpha/kernel/irq.c @@ -159,3 +159,11 @@ handle_irq(int irq) __do_IRQ(irq); irq_exit(); } + +void +srm_device_interrupt(unsigned long vector) +{ + int irq = (vector - 0x800) >> 4; + handle_irq(irq); +} + Index: linux-2.6.28-gentoo/arch/alpha/kernel/irq_srm.c =================================================================== --- linux-2.6.28-gentoo.orig/arch/alpha/kernel/irq_srm.c +++ linux-2.6.28-gentoo/arch/alpha/kernel/irq_srm.c @@ -71,9 +71,3 @@ init_srm_irqs(long max, unsigned long ig } } -void -srm_device_interrupt(unsigned long vector) -{ - int irq = (vector - 0x800) >> 4; - handle_irq(irq); -}