Commit:     9f7905812e5919862acb6ede63e10d3d1bb4958e
Parent:     ee5d1b7f2a01ce4d95ca247b5a499b72f31cdbe8
Author:     Olof Johansson <[EMAIL PROTECTED]>
AuthorDate: Mon Jun 4 14:47:04 2007 +1000
Committer:  Paul Mackerras <[EMAIL PROTECTED]>
CommitDate: Mon Jul 2 13:29:21 2007 +1000

    [POWERPC] Uninline and export virq_to_hw() for the pasemi_mac driver
    Uninline virq_to_hw and export it so modules can use it. The alternative
    would be to export the irq_map array instead, but it's an infrequently
    called function, and keeping the array unexported seems considerably
    This is needed so that the pasemi_mac driver can be compiled as a module.
    Signed-off-by: Olof Johansson <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]>
 arch/powerpc/kernel/irq.c |    6 ++++++
 include/asm-powerpc/irq.h |    5 +----
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 42c8ed6..c2b84c6 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -412,6 +412,12 @@ struct irq_map_entry irq_map[NR_IRQS];
 static unsigned int irq_virq_count = NR_IRQS;
 static struct irq_host *irq_default_host;
+irq_hw_number_t virq_to_hw(unsigned int virq)
+       return irq_map[virq].hwirq;
 struct irq_host *irq_alloc_host(unsigned int revmap_type,
                                unsigned int revmap_arg,
                                struct irq_host_ops *ops,
diff --git a/include/asm-powerpc/irq.h b/include/asm-powerpc/irq.h
index 4734cc1..05dd5a3 100644
--- a/include/asm-powerpc/irq.h
+++ b/include/asm-powerpc/irq.h
@@ -138,10 +138,7 @@ struct irq_map_entry {
 extern struct irq_map_entry irq_map[NR_IRQS];
-static inline irq_hw_number_t virq_to_hw(unsigned int virq)
-       return irq_map[virq].hwirq;
+extern irq_hw_number_t virq_to_hw(unsigned int virq);
  * irq_alloc_host - Allocate a new irq_host data structure
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to