From 83875a30510af6e58d8a76def87ee39f22f3152c Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 10 Apr 2019 14:59:12 +0000 Subject: [PATCH] scst/include/backport.h: Backport irq_set_affinity_notifier() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8177 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/backport.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scst/include/backport.h b/scst/include/backport.h index 67ab63fcb..e05627e85 100644 --- a/scst/include/backport.h +++ b/scst/include/backport.h @@ -498,6 +498,20 @@ ssize_t kernel_write(struct file *file, const void *buf, size_t count, #endif #endif +/* */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && !defined(RHEL_MAJOR) +/* + * See also commit cd7eab44e994 ("genirq: Add IRQ affinity notifiers"; + * v2.6.39). + */ +struct irq_affinity_notify; +static inline int +irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify) +{ + return 0; +} +#endif + /* */ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) || \