From b8ed2771b70d12fb5d49ed238c3f143076037351 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 12 Dec 2006 15:14:17 +0000 Subject: [PATCH] Added PT_REGS_ARG macro to deal with change to interrupt handler prototype in kernel 2.6.19. --- include/linux/interrupt.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 6af12f24..3a5ad5f5 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -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 #endif -- 2.26.2