* [rtc-linux] [PATCH v2] x86: i8259: export legacy_pic symbol
@ 2017-04-08 21:03 Hans de Goede
2017-04-13 21:26 ` [rtc-linux] " Alexandre Belloni
2017-04-14 10:08 ` Alexandre Belloni
0 siblings, 2 replies; 5+ messages in thread
From: Hans de Goede @ 2017-04-08 21:03 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin
Cc: Hans de Goede, x86, rtc-linux, alexandre.belloni
The classic PC rtc-coms driver has a workaround for broken ACPI device
nodes for it which lack an irq resource. This workaround used to
unconditionally hardcode the irq to 8 in these cases.
This was causing irq conflict problems on systems without a legacy-pic
so a recent patch added an if (nr_legacy_irqs()) guard to the
workaround to avoid this irq conflict.
nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
an undefined symbol error if the rtc-cmos code is build as a module.
This commit exports the legacy_pic symbol to fix this.
Cc: rtc-linux@googlegroups.com
Cc: alexandre.belloni@free-electrons.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
Changes in v2:
-Use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL
---
arch/x86/kernel/i8259.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
index be22f5a..0bcf43d 100644
--- a/arch/x86/kernel/i8259.c
+++ b/arch/x86/kernel/i8259.c
@@ -418,6 +418,7 @@ struct legacy_pic default_legacy_pic = {
};
struct legacy_pic *legacy_pic = &default_legacy_pic;
+EXPORT_SYMBOL_GPL(legacy_pic);
static int __init i8259A_init_ops(void)
{
--
2.9.3
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply related [flat|nested] 5+ messages in thread* [rtc-linux] Re: [PATCH v2] x86: i8259: export legacy_pic symbol
2017-04-08 21:03 [rtc-linux] [PATCH v2] x86: i8259: export legacy_pic symbol Hans de Goede
@ 2017-04-13 21:26 ` Alexandre Belloni
2017-04-14 8:08 ` Ingo Molnar
2017-04-14 10:08 ` Alexandre Belloni
1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Belloni @ 2017-04-13 21:26 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86
Cc: Hans de Goede, rtc-linux
Hi,
On 08/04/2017 at 23:03:27 +0200, Hans de Goede wrote:
> The classic PC rtc-coms driver has a workaround for broken ACPI device
> nodes for it which lack an irq resource. This workaround used to
> unconditionally hardcode the irq to 8 in these cases.
>
> This was causing irq conflict problems on systems without a legacy-pic
> so a recent patch added an if (nr_legacy_irqs()) guard to the
> workaround to avoid this irq conflict.
>
> nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
> an undefined symbol error if the rtc-cmos code is build as a module.
>
This is kind of a pressing issue as this makes linux-next fail to build
for certain configurations.
I can carry it in my tree with your ack or let you apply it for 4.12.
What would you prefer?
> This commit exports the legacy_pic symbol to fix this.
>
> Cc: rtc-linux@googlegroups.com
> Cc: alexandre.belloni@free-electrons.com
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Changes in v2:
> -Use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL
> ---
> arch/x86/kernel/i8259.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
> index be22f5a..0bcf43d 100644
> --- a/arch/x86/kernel/i8259.c
> +++ b/arch/x86/kernel/i8259.c
> @@ -418,6 +418,7 @@ struct legacy_pic default_legacy_pic = {
> };
>
> struct legacy_pic *legacy_pic = &default_legacy_pic;
> +EXPORT_SYMBOL_GPL(legacy_pic);
>
> static int __init i8259A_init_ops(void)
> {
> --
> 2.9.3
>
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread* [rtc-linux] Re: [PATCH v2] x86: i8259: export legacy_pic symbol
2017-04-13 21:26 ` [rtc-linux] " Alexandre Belloni
@ 2017-04-14 8:08 ` Ingo Molnar
2017-04-14 8:13 ` Thomas Gleixner
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2017-04-14 8:08 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86, Hans de Goede,
rtc-linux
* Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote:
> Hi,
>
> On 08/04/2017 at 23:03:27 +0200, Hans de Goede wrote:
> > The classic PC rtc-coms driver has a workaround for broken ACPI device
> > nodes for it which lack an irq resource. This workaround used to
> > unconditionally hardcode the irq to 8 in these cases.
> >
> > This was causing irq conflict problems on systems without a legacy-pic
> > so a recent patch added an if (nr_legacy_irqs()) guard to the
> > workaround to avoid this irq conflict.
> >
> > nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
> > an undefined symbol error if the rtc-cmos code is build as a module.
> >
>
> This is kind of a pressing issue as this makes linux-next fail to build
> for certain configurations.
>
> I can carry it in my tree with your ack or let you apply it for 4.12.
> What would you prefer?
Unless Thomas objects it looks good to me and feel free to carry it in your tree:
Acked-by: Ingo Molnar <mingo@kernel.org>
Thanks,
Ingo
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [rtc-linux] Re: [PATCH v2] x86: i8259: export legacy_pic symbol
2017-04-14 8:08 ` Ingo Molnar
@ 2017-04-14 8:13 ` Thomas Gleixner
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Gleixner @ 2017-04-14 8:13 UTC (permalink / raw)
To: Ingo Molnar
Cc: Alexandre Belloni, Ingo Molnar, H . Peter Anvin, x86,
Hans de Goede, rtc-linux
On Fri, 14 Apr 2017, Ingo Molnar wrote:
>
> * Alexandre Belloni <alexandre.belloni@free-electrons.com> wrote:
>
> > Hi,
> >
> > On 08/04/2017 at 23:03:27 +0200, Hans de Goede wrote:
> > > The classic PC rtc-coms driver has a workaround for broken ACPI device
> > > nodes for it which lack an irq resource. This workaround used to
> > > unconditionally hardcode the irq to 8 in these cases.
> > >
> > > This was causing irq conflict problems on systems without a legacy-pic
> > > so a recent patch added an if (nr_legacy_irqs()) guard to the
> > > workaround to avoid this irq conflict.
> > >
> > > nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
> > > an undefined symbol error if the rtc-cmos code is build as a module.
> > >
> >
> > This is kind of a pressing issue as this makes linux-next fail to build
> > for certain configurations.
> >
> > I can carry it in my tree with your ack or let you apply it for 4.12.
> > What would you prefer?
>
> Unless Thomas objects it looks good to me and feel free to carry it in your tree:
>
> Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [rtc-linux] Re: [PATCH v2] x86: i8259: export legacy_pic symbol
2017-04-08 21:03 [rtc-linux] [PATCH v2] x86: i8259: export legacy_pic symbol Hans de Goede
2017-04-13 21:26 ` [rtc-linux] " Alexandre Belloni
@ 2017-04-14 10:08 ` Alexandre Belloni
1 sibling, 0 replies; 5+ messages in thread
From: Alexandre Belloni @ 2017-04-14 10:08 UTC (permalink / raw)
To: Hans de Goede
Cc: Thomas Gleixner, Ingo Molnar, H . Peter Anvin, x86, rtc-linux
On 08/04/2017 at 23:03:27 +0200, Hans de Goede wrote:
> The classic PC rtc-coms driver has a workaround for broken ACPI device
> nodes for it which lack an irq resource. This workaround used to
> unconditionally hardcode the irq to 8 in these cases.
>
> This was causing irq conflict problems on systems without a legacy-pic
> so a recent patch added an if (nr_legacy_irqs()) guard to the
> workaround to avoid this irq conflict.
>
> nr_legacy_irqs() uses the legacy_pic symbol under the hood causing
> an undefined symbol error if the rtc-cmos code is build as a module.
>
> This commit exports the legacy_pic symbol to fix this.
>
> Cc: rtc-linux@googlegroups.com
> Cc: alexandre.belloni@free-electrons.com
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
> Changes in v2:
> -Use EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL
> ---
> arch/x86/kernel/i8259.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-04-14 10:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-08 21:03 [rtc-linux] [PATCH v2] x86: i8259: export legacy_pic symbol Hans de Goede
2017-04-13 21:26 ` [rtc-linux] " Alexandre Belloni
2017-04-14 8:08 ` Ingo Molnar
2017-04-14 8:13 ` Thomas Gleixner
2017-04-14 10:08 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox