linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+
@ 2011-06-29 22:01 Pavel Roskin
  2011-06-30 20:13 ` Luis R. Rodriguez
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2011-06-29 22:01 UTC (permalink / raw)
  To: Luis R. Rodriguez, linux-wireless

Signed-off-by: Pavel Roskin <proski@gnu.org>

set_irq_probe() and set_irq_probe() are missing on Linux 2.6.24, so the
code won't compile.  compat-wireless doesn't need those functions.  Keep
the functions for Linux 2.6.25 and newer for other compat packages.
---
 include/linux/compat-2.6.39.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/compat-2.6.39.h b/include/linux/compat-2.6.39.h
index b4d85fd..406f8eb 100644
--- a/include/linux/compat-2.6.39.h
+++ b/include/linux/compat-2.6.39.h
@@ -64,6 +64,8 @@ static inline struct msi_desc *irq_get_msi_desc(unsigned int irq)
 {
 	return get_irq_msi(irq);
 }
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
 static inline void irq_set_noprobe(unsigned int irq)
 {
 	set_irq_noprobe(irq);
@@ -72,6 +74,7 @@ static inline void irq_set_probe(unsigned int irq)
 {
 	set_irq_probe(irq);
 }
+#endif
 
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29))
 static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc)

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

* Re: [PATCH] compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+
  2011-06-29 22:01 [PATCH] compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+ Pavel Roskin
@ 2011-06-30 20:13 ` Luis R. Rodriguez
  0 siblings, 0 replies; 2+ messages in thread
From: Luis R. Rodriguez @ 2011-06-30 20:13 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: linux-wireless

On Wed, Jun 29, 2011 at 5:01 PM, Pavel Roskin <proski@gnu.org> wrote:
> Signed-off-by: Pavel Roskin <proski@gnu.org>
>
> set_irq_probe() and set_irq_probe() are missing on Linux 2.6.24, so the
> code won't compile.  compat-wireless doesn't need those functions.  Keep
> the functions for Linux 2.6.25 and newer for other compat packages.

Applied and pushed, after my siesta from Colombia, thanks!

  Luis

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

end of thread, other threads:[~2011-06-30 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 22:01 [PATCH] compat: define irq_set_probe() and irq_set_noprobe() only on Linux 2.6.25+ Pavel Roskin
2011-06-30 20:13 ` 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).