From: Frank Mori Hess Date: Tue, 12 Dec 2006 15:14:17 +0000 (+0000) Subject: Added PT_REGS_ARG macro to deal with change to interrupt handler X-Git-Tag: r0_7_74~137 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8ed2771b70d12fb5d49ed238c3f143076037351;p=comedi.git Added PT_REGS_ARG macro to deal with change to interrupt handler prototype in kernel 2.6.19. --- 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