* [PATCH][2.4.28-pre3] ips scsi driver compile failure fix
@ 2004-09-12 11:20 Mikael Pettersson
0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2004-09-12 11:20 UTC (permalink / raw)
To: ipslinux, marcelo.tosatti; +Cc: linux-kernel
drivers/scsi/ips.c fails to compile in the 2.4.28-pre3 kernel:
In file included from ips.c:190:
ips.h:101: error: redefinition of typedef 'irqreturn_t'
/tmp/linux-2.4.28-pre3/include/linux/interrupt.h:16: error: previous declaration of 'irqreturn_t' was here
The irqreturn_t etc compat definitions in ips.h are in conflict
with the compat definitions in interrupt.h, added in kernel 2.4.23.
The patch below fixes the issue for me.
/Mikael
--- linux-2.4.28-pre3/drivers/scsi/ips.h.~1~ 2004-09-12 00:23:20.000000000 +0200
+++ linux-2.4.28-pre3/drivers/scsi/ips.h 2004-09-12 02:09:04.000000000 +0200
@@ -97,13 +97,13 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
- #ifndef irqreturn_t
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,23)
typedef void irqreturn_t;
+ #define IRQ_NONE
+ #define IRQ_HANDLED
+ #define IRQ_RETVAL(x)
#endif
- #define IRQ_NONE
- #define IRQ_HANDLED
- #define IRQ_RETVAL(x)
#define IPS_REGISTER_HOSTS(SHT) scsi_register_module(MODULE_SCSI_HA,SHT)
#define IPS_UNREGISTER_HOSTS(SHT) scsi_unregister_module(MODULE_SCSI_HA,SHT)
#define IPS_ADD_HOST(shost,device)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-12 11:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-12 11:20 [PATCH][2.4.28-pre3] ips scsi driver compile failure fix Mikael Pettersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).