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
This commit is contained in:
Bart Van Assche
2019-04-10 14:59:12 +00:00
parent 213dcbfd0a
commit 83875a3051

View File

@@ -498,6 +498,20 @@ ssize_t kernel_write(struct file *file, const void *buf, size_t count,
#endif
#endif
/* <linux/interrupt.h> */
#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
/* <linux/iocontext.h> */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25) || \