2020-08-13 23:02:38

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] x86/pci: fix xen.c build error when CONFIG_ACPI is not set

From: Randy Dunlap <[email protected]>

Fix build error when CONFIG_ACPI is not set/enabled:

../arch/x86/pci/xen.c: In function ‘pci_xen_init’:
../arch/x86/pci/xen.c:410:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
acpi_noirq_set();

Fixes: 88e9ca161c13 ("xen/pci: Use acpi_noirq_set() helper to avoid #ifdef")
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Andy Shevchenko <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: [email protected]
Cc: [email protected]
---
arch/x86/pci/xen.c | 1 +
1 file changed, 1 insertion(+)

--- linux-next-20200813.orig/arch/x86/pci/xen.c
+++ linux-next-20200813/arch/x86/pci/xen.c
@@ -26,6 +26,7 @@
#include <asm/xen/pci.h>
#include <asm/xen/cpuid.h>
#include <asm/apic.h>
+#include <asm/acpi.h>
#include <asm/i8259.h>

static int xen_pcifront_enable_irq(struct pci_dev *dev)


2020-08-20 03:10:31

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] x86/pci: fix xen.c build error when CONFIG_ACPI is not set

Hi Konrad,

ping.

I am still seeing this build error. It looks like this is
in your territory to merge...


On 8/13/20 4:00 PM, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> Fix build error when CONFIG_ACPI is not set/enabled:
>
> ../arch/x86/pci/xen.c: In function ‘pci_xen_init’:
> ../arch/x86/pci/xen.c:410:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
> acpi_noirq_set();
>
> Fixes: 88e9ca161c13 ("xen/pci: Use acpi_noirq_set() helper to avoid #ifdef")
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: Andy Shevchenko <[email protected]>
> Cc: Bjorn Helgaas <[email protected]>
> Cc: Konrad Rzeszutek Wilk <[email protected]>
> Cc: [email protected]
> Cc: [email protected]
> ---
> arch/x86/pci/xen.c | 1 +
> 1 file changed, 1 insertion(+)
>
> --- linux-next-20200813.orig/arch/x86/pci/xen.c
> +++ linux-next-20200813/arch/x86/pci/xen.c
> @@ -26,6 +26,7 @@
> #include <asm/xen/pci.h>
> #include <asm/xen/cpuid.h>
> #include <asm/apic.h>
> +#include <asm/acpi.h>
> #include <asm/i8259.h>
>
> static int xen_pcifront_enable_irq(struct pci_dev *dev)
>


thanks.
--
~Randy

2020-08-20 14:40:31

by Konrad Rzeszutek Wilk

[permalink] [raw]
Subject: Re: [PATCH] x86/pci: fix xen.c build error when CONFIG_ACPI is not set

On Wed, Aug 19, 2020 at 08:09:11PM -0700, Randy Dunlap wrote:
> Hi Konrad,

Hey Randy,

I believe Juergen is picking this up.
>
> ping.
>
> I am still seeing this build error. It looks like this is
> in your territory to merge...
>
>
> On 8/13/20 4:00 PM, Randy Dunlap wrote:
> > From: Randy Dunlap <[email protected]>
> >
> > Fix build error when CONFIG_ACPI is not set/enabled:
> >
> > ../arch/x86/pci/xen.c: In function ‘pci_xen_init’:
> > ../arch/x86/pci/xen.c:410:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
> > acpi_noirq_set();
> >
> > Fixes: 88e9ca161c13 ("xen/pci: Use acpi_noirq_set() helper to avoid #ifdef")
> > Signed-off-by: Randy Dunlap <[email protected]>
> > Cc: Andy Shevchenko <[email protected]>
> > Cc: Bjorn Helgaas <[email protected]>
> > Cc: Konrad Rzeszutek Wilk <[email protected]>
> > Cc: [email protected]
> > Cc: [email protected]
> > ---
> > arch/x86/pci/xen.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > --- linux-next-20200813.orig/arch/x86/pci/xen.c
> > +++ linux-next-20200813/arch/x86/pci/xen.c
> > @@ -26,6 +26,7 @@
> > #include <asm/xen/pci.h>
> > #include <asm/xen/cpuid.h>
> > #include <asm/apic.h>
> > +#include <asm/acpi.h>
> > #include <asm/i8259.h>
> >
> > static int xen_pcifront_enable_irq(struct pci_dev *dev)
> >
>
>
> thanks.
> --
> ~Randy
>

2020-08-20 14:49:31

by Juergen Gross

[permalink] [raw]
Subject: Re: [PATCH] x86/pci: fix xen.c build error when CONFIG_ACPI is not set

On 20.08.20 16:40, Konrad Rzeszutek Wilk wrote:
> On Wed, Aug 19, 2020 at 08:09:11PM -0700, Randy Dunlap wrote:
>> Hi Konrad,
>
> Hey Randy,
>
> I believe Juergen is picking this up.

Yes, have queued it for rc2.


Juergen

>>
>> ping.
>>
>> I am still seeing this build error. It looks like this is
>> in your territory to merge...
>>
>>
>> On 8/13/20 4:00 PM, Randy Dunlap wrote:
>>> From: Randy Dunlap <[email protected]>
>>>
>>> Fix build error when CONFIG_ACPI is not set/enabled:
>>>
>>> ../arch/x86/pci/xen.c: In function ‘pci_xen_init’:
>>> ../arch/x86/pci/xen.c:410:2: error: implicit declaration of function ‘acpi_noirq_set’; did you mean ‘acpi_irq_get’? [-Werror=implicit-function-declaration]
>>> acpi_noirq_set();
>>>
>>> Fixes: 88e9ca161c13 ("xen/pci: Use acpi_noirq_set() helper to avoid #ifdef")
>>> Signed-off-by: Randy Dunlap <[email protected]>
>>> Cc: Andy Shevchenko <[email protected]>
>>> Cc: Bjorn Helgaas <[email protected]>
>>> Cc: Konrad Rzeszutek Wilk <[email protected]>
>>> Cc: [email protected]
>>> Cc: [email protected]
>>> ---
>>> arch/x86/pci/xen.c | 1 +
>>> 1 file changed, 1 insertion(+)
>>>
>>> --- linux-next-20200813.orig/arch/x86/pci/xen.c
>>> +++ linux-next-20200813/arch/x86/pci/xen.c
>>> @@ -26,6 +26,7 @@
>>> #include <asm/xen/pci.h>
>>> #include <asm/xen/cpuid.h>
>>> #include <asm/apic.h>
>>> +#include <asm/acpi.h>
>>> #include <asm/i8259.h>
>>>
>>> static int xen_pcifront_enable_irq(struct pci_dev *dev)
>>>
>>
>>
>> thanks.
>> --
>> ~Randy
>>
>