X-Git-Url: https://git.archive.openwrt.org/?p=15.05%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Ffiles%2Fcrypto%2Focf%2Focf-compat.h;fp=target%2Flinux%2Fgeneric%2Ffiles%2Fcrypto%2Focf%2Focf-compat.h;h=b38cf27b3a3df8a360dd449ae8bbfef31772d126;hp=831927e8802be764dc971fa8e8a34fc2c67d5ef0;hb=7dffd1e756b378f4c8e7cfe9860537743fc96d43;hpb=04833b01dda2c0f0f3d8c3c58b3da8bb49307755 diff --git a/target/linux/generic/files/crypto/ocf/ocf-compat.h b/target/linux/generic/files/crypto/ocf/ocf-compat.h index 831927e880..b38cf27b3a 100644 --- a/target/linux/generic/files/crypto/ocf/ocf-compat.h +++ b/target/linux/generic/files/crypto/ocf/ocf-compat.h @@ -211,6 +211,7 @@ struct ocf_device { /* older kernels don't have these */ #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) #if !defined(IRQ_NONE) && !defined(IRQ_RETVAL) #define IRQ_NONE #define IRQ_HANDLED @@ -222,6 +223,7 @@ typedef irqreturn_t (*irq_handler_t)(int irq, void *arg, struct pt_regs *regs); #ifndef IRQF_SHARED #define IRQF_SHARED SA_SHIRQ #endif +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) # define strlcpy(dest,src,len) \