Added PT_REGS_ARG macro to deal with change to interrupt handler
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 12 Dec 2006 15:14:17 +0000 (15:14 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 12 Dec 2006 15:14:17 +0000 (15:14 +0000)
prototype in kernel 2.6.19.

include/linux/interrupt.h

index 6af12f24ead6cfc8d472d1edd23faa29d6461951..3a5ad5f5aab548a601e279ad3194f78bf8528787 100644 (file)
@@ -28,6 +28,12 @@ typedef void irqreturn_t;
 #define IRQ_RETVAL(x) (void)(x)
 #endif
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
+#define PT_REGS_ARG , struct pt_regs *regs
+#else
+#define PT_REGS_ARG
+#endif
+
 #include_next <linux/interrupt.h>
 
 #endif