All of lore.kernel.org
 help / color / mirror / Atom feed
* [next] pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
@ 2022-03-14 10:18 Naresh Kamboju
  2022-03-14 16:01 ` Bjorn Helgaas
  0 siblings, 1 reply; 3+ messages in thread
From: Naresh Kamboju @ 2022-03-14 10:18 UTC (permalink / raw)
  To: Randy Dunlap, Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen
  Cc: PCI, X86 ML, lkft-triage

Linux next-20220310 i386 build failed due to below warnings / errors.

  CC      arch/x86/kernel/resource.o
In file included from arch/x86/kernel/resource.c:4:0:
arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
 extern raw_spinlock_t pci_config_lock;
        ^~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:141:20: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'dmi_check_pciprobe'
 extern void __init dmi_check_pciprobe(void);
                    ^~~~~~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:142:20: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'dmi_check_skip_isa_align'
 extern void __init dmi_check_skip_isa_align(void);
                    ^~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:146:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pci_acpi_init'
 extern int __init pci_acpi_init(void);
                   ^~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:153:20: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pcibios_irq_init'
 extern void __init pcibios_irq_init(void);
                    ^~~~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:154:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pcibios_init'
 extern int __init pcibios_init(void);
                   ^~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:174:19: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pci_mmcfg_arch_init'
 extern int __init pci_mmcfg_arch_init(void);
                   ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:175:20: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pci_mmcfg_arch_free'
 extern void __init pci_mmcfg_arch_free(void);
                    ^~~~~~~~~~~~~~~~~~~
arch/x86/include/asm/pci_x86.h:182:40: error: expected '=', ',', ';',
'asm' or '__attribute__' before 'pci_mmconfig_add'
 extern struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start,
                                        ^~~~~~~~~~~~~~~~
  CC      net/core/filter.o
make[2]: *** [scripts/Makefile.build:288: arch/x86/kernel/resource.o] Error 1

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>


--
Linaro LKFT
https://lkft.linaro.org
[1]  https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1207/consoleText

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

* Re: [next] pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
  2022-03-14 10:18 [next] pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t' Naresh Kamboju
@ 2022-03-14 16:01 ` Bjorn Helgaas
  2022-03-14 19:46   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Bjorn Helgaas @ 2022-03-14 16:01 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: Randy Dunlap, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, PCI, X86 ML, lkft-triage

On Mon, Mar 14, 2022 at 03:48:12PM +0530, Naresh Kamboju wrote:
> Linux next-20220310 i386 build failed due to below warnings / errors.
> 
>   CC      arch/x86/kernel/resource.o
> In file included from arch/x86/kernel/resource.c:4:0:
> arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'

I don't know what to do with this.  It works for me:

  $ gsr
  71941773e143 ("Add linux-next specific files for 20220310")
  $ ARCH=i386 make defconfig
  $ ARCH=i386 make arch/x86/kernel/resource.o
    ...
    CC      arch/x86/kernel/resource.o
  $ echo $?
  0

What config did you use?  How can I reproduce this?

>  extern raw_spinlock_t pci_config_lock;
>         ^~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:141:20: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'dmi_check_pciprobe'
>  extern void __init dmi_check_pciprobe(void);
>                     ^~~~~~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:142:20: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'dmi_check_skip_isa_align'
>  extern void __init dmi_check_skip_isa_align(void);
>                     ^~~~~~~~~~~~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:146:19: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pci_acpi_init'
>  extern int __init pci_acpi_init(void);
>                    ^~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:153:20: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pcibios_irq_init'
>  extern void __init pcibios_irq_init(void);
>                     ^~~~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:154:19: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pcibios_init'
>  extern int __init pcibios_init(void);
>                    ^~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:174:19: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pci_mmcfg_arch_init'
>  extern int __init pci_mmcfg_arch_init(void);
>                    ^~~~~~~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:175:20: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pci_mmcfg_arch_free'
>  extern void __init pci_mmcfg_arch_free(void);
>                     ^~~~~~~~~~~~~~~~~~~
> arch/x86/include/asm/pci_x86.h:182:40: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'pci_mmconfig_add'
>  extern struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start,
>                                         ^~~~~~~~~~~~~~~~
>   CC      net/core/filter.o
> make[2]: *** [scripts/Makefile.build:288: arch/x86/kernel/resource.o] Error 1
> 
> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
> 
> 
> --
> Linaro LKFT
> https://lkft.linaro.org
> [1]  https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1207/consoleText

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

* Re: [next] pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
  2022-03-14 16:01 ` Bjorn Helgaas
@ 2022-03-14 19:46   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2022-03-14 19:46 UTC (permalink / raw)
  To: Bjorn Helgaas, Naresh Kamboju
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, Dave Hansen, PCI,
	X86 ML, lkft-triage



On 3/14/22 09:01, Bjorn Helgaas wrote:
> On Mon, Mar 14, 2022 at 03:48:12PM +0530, Naresh Kamboju wrote:
>> Linux next-20220310 i386 build failed due to below warnings / errors.
>>
>>   CC      arch/x86/kernel/resource.o
>> In file included from arch/x86/kernel/resource.c:4:0:
>> arch/x86/include/asm/pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t'
> 
> I don't know what to do with this.  It works for me:
> 
>   $ gsr
>   71941773e143 ("Add linux-next specific files for 20220310")
>   $ ARCH=i386 make defconfig
>   $ ARCH=i386 make arch/x86/kernel/resource.o
>     ...
>     CC      arch/x86/kernel/resource.o
>   $ echo $?
>   0
> 
> What config did you use?  How can I reproduce this?

I sent a patch for this a few weeks ago.

https://lore.kernel.org/lkml/20220226213703.24041-1-rdunlap@infradead.org/

I sent it to the x86 maintainers...

> 
>>  extern raw_spinlock_t pci_config_lock;
>>         ^~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:141:20: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'dmi_check_pciprobe'
>>  extern void __init dmi_check_pciprobe(void);
>>                     ^~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:142:20: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'dmi_check_skip_isa_align'
>>  extern void __init dmi_check_skip_isa_align(void);
>>                     ^~~~~~~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:146:19: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pci_acpi_init'
>>  extern int __init pci_acpi_init(void);
>>                    ^~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:153:20: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pcibios_irq_init'
>>  extern void __init pcibios_irq_init(void);
>>                     ^~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:154:19: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pcibios_init'
>>  extern int __init pcibios_init(void);
>>                    ^~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:174:19: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pci_mmcfg_arch_init'
>>  extern int __init pci_mmcfg_arch_init(void);
>>                    ^~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:175:20: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pci_mmcfg_arch_free'
>>  extern void __init pci_mmcfg_arch_free(void);
>>                     ^~~~~~~~~~~~~~~~~~~
>> arch/x86/include/asm/pci_x86.h:182:40: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'pci_mmconfig_add'
>>  extern struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start,
>>                                         ^~~~~~~~~~~~~~~~
>>   CC      net/core/filter.o
>> make[2]: *** [scripts/Makefile.build:288: arch/x86/kernel/resource.o] Error 1
>>
>> Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
>>
>>
>> --
>> Linaro LKFT
>> https://lkft.linaro.org
>> [1]  https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1207/consoleText

-- 
~Randy

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

end of thread, other threads:[~2022-03-14 19:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14 10:18 [next] pci_x86.h:105:8: error: unknown type name 'raw_spinlock_t' Naresh Kamboju
2022-03-14 16:01 ` Bjorn Helgaas
2022-03-14 19:46   ` Randy Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.