public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] IRQ: ease out-of-tree migration to new irq_handler prototype
@ 2006-11-04 18:29 William D Waddington
  2006-11-04 19:03 ` Alexey Dobriyan
  0 siblings, 1 reply; 5+ messages in thread
From: William D Waddington @ 2006-11-04 18:29 UTC (permalink / raw)
  To: linux-kernel

From: william.waddington@beezmo.com

Ease out-of-tree driver migration to new irq_handler prototype.
Define empty 3rd argument macro for use in multi kernel version
out-of-tree drivers going forward.  Backportable drives can do:

(in a header)
#ifndef __PT_REGS
# define __PT_REGS , struct pt_regs *regs
#endif

(in code body)
static irqreturn_t irq_handler(int irq, void *dev_id __PT_REGS)

Signed-off-by: Bill Waddington <william.waddington@beezmo.com>

---

Has this suggestion by Ingo Molnar been implemented?  May I
submit it?  Is this how it's done?

--- 2.6.19-rc3/include/linux/interrupt.h.ORIG	2006-11-04 
09:15:16.000000000 -0800
+++ 2.6.19-rc3/include/linux/interrupt.h	2006-11-04 09:23:18.000000000 -0800
@@ -66,6 +66,14 @@

  typedef irqreturn_t (*irq_handler_t)(int, void *);

+/*
+ * Irq handler migration helper - empty 3rd argument
+ * #define __PT_REGS , struct pt_regs *regs
+ * for older kernel versions
+ */
+
+#define __PT_REGS
+
  struct irqaction {
  	irq_handler_t handler;
  	unsigned long flags;


Bill
-- 
--------------------------------------------
William D Waddington
Bainbridge Island, WA, USA
william.waddington@beezmo.com
--------------------------------------------
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch

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

end of thread, other threads:[~2006-11-05 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04 18:29 [PATCH] IRQ: ease out-of-tree migration to new irq_handler prototype William D Waddington
2006-11-04 19:03 ` Alexey Dobriyan
2006-11-04 20:06   ` William D Waddington
2006-11-05  2:04     ` Alexey Dobriyan
2006-11-05 14:56       ` William D Waddington

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox