linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] compat: remove backport of irq_modify_status
@ 2012-08-02 16:28 Hauke Mehrtens
  2012-08-02 16:28 ` [PATCH 2/2] compat: fix endless recursion in flush_scheduled_work Hauke Mehrtens
  2012-08-06 18:33 ` [PATCH 1/2] compat: remove backport of irq_modify_status Luis R. Rodriguez
  0 siblings, 2 replies; 8+ messages in thread
From: Hauke Mehrtens @ 2012-08-02 16:28 UTC (permalink / raw)
  To: mcgrof; +Cc: linux-wireless, Hauke Mehrtens

Only kernel >= 2.6.39 irq_to_desc or irq_desc are exporting, so that
compat is not able to access this on the kernel versions where it is
needed. irq_to_desc and irq_desc are defined in the header files so
compilation works, but the module is not loadable because of the
missing exported symbol which make compat unusable on all these kernel
versions. Remove this function, no driver seams to need it.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 compat/compat-2.6.37.c        |   26 --------------------------
 include/linux/compat-2.6.37.h |   21 ---------------------
 2 files changed, 47 deletions(-)

diff --git a/compat/compat-2.6.37.c b/compat/compat-2.6.37.c
index d2ee109..24b267a 100644
--- a/compat/compat-2.6.37.c
+++ b/compat/compat-2.6.37.c
@@ -13,32 +13,6 @@
 #include <net/sock.h>
 #include <linux/nsproxy.h>
 #include <linux/vmalloc.h>
-#include <linux/irq.h>
-#include <linux/irqnr.h>
-#include <linux/spinlock.h>
-
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,27)
-#define irq_to_desc(irq) (irq_desc + irq)
-#endif
-
-void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set)
-{
-	struct irq_desc *desc = irq_to_desc(irq);
-	unsigned long flags;
-
-	if (!desc)
-		return;
-
-	/* Sanitize flags */
-	set &= IRQF_MODIFY_MASK;
-	clr &= IRQF_MODIFY_MASK;
-
-	spin_lock_irqsave(&desc->lock, flags);
-	desc->status &= ~clr;
-	desc->status |= set;
-	spin_unlock_irqrestore(&desc->lock, flags);
-}
-EXPORT_SYMBOL_GPL(irq_modify_status);
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)
 static const void *net_current_ns(void)
diff --git a/include/linux/compat-2.6.37.h b/include/linux/compat-2.6.37.h
index b87aa2f..7e14853 100644
--- a/include/linux/compat-2.6.37.h
+++ b/include/linux/compat-2.6.37.h
@@ -9,27 +9,6 @@
 #include <linux/leds.h>
 #include <linux/in.h>
 #include <linux/errno.h>
-#include <linux/irq.h>
-
-#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28))
-#define IRQ_MOVE_PCNTXT         0x01000000      /* IRQ migration from process context */
-#endif
-
-#define IRQF_MODIFY_MASK       \
-	(IRQ_TYPE_SENSE_MASK | IRQ_NOPROBE | IRQ_NOREQUEST | \
-	IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL)
-
-void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set);
-
-static inline void irq_set_status_flags(unsigned int irq, unsigned long set)
-{
-	irq_modify_status(irq, 0, set);
-}
-
-static inline void irq_clear_status_flags(unsigned int irq, unsigned long clr)
-{
-	irq_modify_status(irq, clr, 0);
-}
 
 static inline int proto_ports_offset(int proto)
 {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-08-09 22:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-02 16:28 [PATCH 1/2] compat: remove backport of irq_modify_status Hauke Mehrtens
2012-08-02 16:28 ` [PATCH 2/2] compat: fix endless recursion in flush_scheduled_work Hauke Mehrtens
2012-08-06 18:52   ` Luis R. Rodriguez
2012-08-09  9:22     ` Zefir Kurtisi
2012-08-09 22:17       ` Luis R. Rodriguez
2012-08-06 18:33 ` [PATCH 1/2] compat: remove backport of irq_modify_status Luis R. Rodriguez
2012-08-06 18:50   ` Hauke Mehrtens
2012-08-06 19:07     ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).