From 84453052c585d2dd101e74c43663615013afa64d Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 24 Nov 2013 19:26:48 +0100 Subject: [PATCH] backports: remove irq_set_affinity_hint() irq_set_affinity_hint() was never called by any code. This makes it possible to remove struct cpumask. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/cpumask.h | 10 ---------- backport/backport-include/linux/interrupt.h | 16 ---------------- 2 files changed, 26 deletions(-) delete mode 100644 backport/backport-include/linux/cpumask.h diff --git a/backport/backport-include/linux/cpumask.h b/backport/backport-include/linux/cpumask.h deleted file mode 100644 index 7df3457ccb24..000000000000 --- a/backport/backport-include/linux/cpumask.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef __BACKPORT_LINUX_CPUMASK_H -#define __BACKPORT_LINUX_CPUMASK_H -#include_next -#include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) -typedef struct cpumask { DECLARE_BITMAP(bits, NR_CPUS); } compat_cpumask_t; -#endif - -#endif /* __BACKPORT_LINUX_CPUMASK_H */ diff --git a/backport/backport-include/linux/interrupt.h b/backport/backport-include/linux/interrupt.h index 1729567439e4..a9fb503ba377 100644 --- a/backport/backport-include/linux/interrupt.h +++ b/backport/backport-include/linux/interrupt.h @@ -10,22 +10,6 @@ static inline int irq_set_irq_wake(unsigned int irq, unsigned int on) } #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35) -#include -/* mask irq_set_affinity_hint as RHEL6 backports this */ -#define irq_set_affinity_hint LINUX_BACKPORT(irq_set_affinity_hint) -/* - * We cannot backport this guy as the IRQ data structure - * was modified in the kernel itself to support this. We - * treat the system as uni-processor in this case. - */ -static inline int irq_set_affinity_hint(unsigned int irq, - const struct cpumask *m) -{ - return -EINVAL; -} -#endif - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30) #define IRQ_WAKE_THREAD (2) #endif -- 2.30.2