* Re: Linux-3.4-rc7 [build failure]
@ 2012-05-13 7:42 Paweł Sikora
2012-05-13 10:13 ` Jiri Kosina
0 siblings, 1 reply; 5+ messages in thread
From: Paweł Sikora @ 2012-05-13 7:42 UTC (permalink / raw)
To: linux-kernel; +Cc: torvalds
[-- Attachment #1: Type: text/plain, Size: 327 bytes --]
Hi all,
i see a build failure on modular kernel.
(...)
Kernel: arch/x86/boot/bzImage is ready (#15)
MODPOST 3501 modules
ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!
WARNING: modpost: Found 4 section mismatch(es).
(...)
BR,
Paweł.
[-- Attachment #2: .config --]
[-- Type: application/x-config, Size: 140156 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux-3.4-rc7 [build failure]
2012-05-13 7:42 Linux-3.4-rc7 [build failure] Paweł Sikora
@ 2012-05-13 10:13 ` Jiri Kosina
2012-05-13 15:16 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Jiri Kosina @ 2012-05-13 10:13 UTC (permalink / raw)
To: Paweł Sikora; +Cc: linux-kernel, Linus Torvalds, Thomas Gleixner
On Sun, 13 May 2012, Paweł Sikora wrote:
> Hi all,
> i see a build failure on modular kernel.
>
> (...)
> Kernel: arch/x86/boot/bzImage is ready (#15)
> MODPOST 3501 modules
> ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
> ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!
> WARNING: modpost: Found 4 section mismatch(es).
> (...)
This is caused by
commit df9541a60af0985c3a756dc5f99b9253d2565a07
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Apr 28 10:13:45 2012 +0200
gpio: pch9: Use proper flow type handlers
as it adds
__irq_set_handler_locked(d->irq, handle_edge_irq);
but handle_edge_irq() is not exported for modules (and inlined
__irq_set_handler_locked() requires irq_to_desc() exported as well)
Thus the patch below fixes it; adding Thomas to CC to get his Ack for this
first though.
From: Jiri Kosina <jkosina@suse.cz>
Subject: [PATCH] genirq: export handle_edge_irq() and irq_to_desc()
Export handle_edge_irq() and irq_to_desc() to modules to allow them to
do things such as
__irq_set_handler_locked(...., handle_edge_irq);
This fixes
ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!
when gpio-pch is being built as a module.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
---
kernel/irq/chip.c | 1 +
kernel/irq/irqdesc.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index 6080f6b..3914c1e 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -518,6 +518,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
out_unlock:
raw_spin_unlock(&desc->lock);
}
+EXPORT_SYMBOL(handle_edge_irq);
#ifdef CONFIG_IRQ_EDGE_EOI_HANDLER
/**
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
index d86e254..192a302 100644
--- a/kernel/irq/irqdesc.c
+++ b/kernel/irq/irqdesc.c
@@ -112,6 +112,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
{
return radix_tree_lookup(&irq_desc_tree, irq);
}
+EXPORT_SYMBOL(irq_to_desc);
static void delete_irq_desc(unsigned int irq)
{
--
Jiri Kosina
SUSE Labs
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Linux-3.4-rc7 [build failure]
2012-05-13 10:13 ` Jiri Kosina
@ 2012-05-13 15:16 ` Thomas Gleixner
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2012-05-13 15:16 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Paweł Sikora, linux-kernel, Linus Torvalds
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2389 bytes --]
On Sun, 13 May 2012, Jiri Kosina wrote:
> On Sun, 13 May 2012, Paweł Sikora wrote:
>
> > Hi all,
> > i see a build failure on modular kernel.
> >
> > (...)
> > Kernel: arch/x86/boot/bzImage is ready (#15)
> > MODPOST 3501 modules
> > ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
> > ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!
> > WARNING: modpost: Found 4 section mismatch(es).
> > (...)
>
> This is caused by
>
> commit df9541a60af0985c3a756dc5f99b9253d2565a07
> Author: Thomas Gleixner <tglx@linutronix.de>
> Date: Sat Apr 28 10:13:45 2012 +0200
>
> gpio: pch9: Use proper flow type handlers
>
>
> as it adds
>
> __irq_set_handler_locked(d->irq, handle_edge_irq);
>
> but handle_edge_irq() is not exported for modules (and inlined
> __irq_set_handler_locked() requires irq_to_desc() exported as well)
>
> Thus the patch below fixes it; adding Thomas to CC to get his Ack for this
> first though.
Hrmpf. I'll take it via irg/urgent
>
>
> From: Jiri Kosina <jkosina@suse.cz>
> Subject: [PATCH] genirq: export handle_edge_irq() and irq_to_desc()
>
> Export handle_edge_irq() and irq_to_desc() to modules to allow them to
> do things such as
>
> __irq_set_handler_locked(...., handle_edge_irq);
>
> This fixes
>
> ERROR: "handle_edge_irq" [drivers/gpio/gpio-pch.ko] undefined!
> ERROR: "irq_to_desc" [drivers/gpio/gpio-pch.ko] undefined!
>
> when gpio-pch is being built as a module.
>
> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
> ---
> kernel/irq/chip.c | 1 +
> kernel/irq/irqdesc.c | 1 +
> 2 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
> index 6080f6b..3914c1e 100644
> --- a/kernel/irq/chip.c
> +++ b/kernel/irq/chip.c
> @@ -518,6 +518,7 @@ handle_edge_irq(unsigned int irq, struct irq_desc *desc)
> out_unlock:
> raw_spin_unlock(&desc->lock);
> }
> +EXPORT_SYMBOL(handle_edge_irq);
>
> #ifdef CONFIG_IRQ_EDGE_EOI_HANDLER
> /**
> diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c
> index d86e254..192a302 100644
> --- a/kernel/irq/irqdesc.c
> +++ b/kernel/irq/irqdesc.c
> @@ -112,6 +112,7 @@ struct irq_desc *irq_to_desc(unsigned int irq)
> {
> return radix_tree_lookup(&irq_desc_tree, irq);
> }
> +EXPORT_SYMBOL(irq_to_desc);
>
> static void delete_irq_desc(unsigned int irq)
> {
>
> --
> Jiri Kosina
> SUSE Labs
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Linux-3.4-rc7 [build failure]
@ 2012-05-13 16:02 Sedat Dilek
2012-05-13 20:50 ` joe
0 siblings, 1 reply; 5+ messages in thread
From: Sedat Dilek @ 2012-05-13 16:02 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Paweł Sikora, LKML, Thomas Gleixner
I see the same build-failures as Pawel, Jiri's patch fixes the issue here.
- Sedat -
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-05-13 21:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-13 7:42 Linux-3.4-rc7 [build failure] Paweł Sikora
2012-05-13 10:13 ` Jiri Kosina
2012-05-13 15:16 ` Thomas Gleixner
-- strict thread matches above, loose matches on Subject: below --
2012-05-13 16:02 Sedat Dilek
2012-05-13 20:50 ` joe
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).