lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208021521.Z3FSeLUl-lkp@intel.com>
Date:   Tue, 2 Aug 2022 15:41:10 +0800
From:   kernel test robot <lkp@...el.com>
To:     Huacai Chen <chenhuacai@...ngson.cn>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Marc Zyngier <maz@...nel.org>,
        Jianmin Lv <lvjianmin@...ngson.cn>
Subject: drivers/irqchip/irq-loongarch-cpu.c:80:9: error: implicit
 declaration of function 'acpi_table_parse_madt'; did you mean
 'acpi_table_parse'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9de1f9c8ca5100a02a2e271bdbde36202e251b4b
commit: b2d3e3354e2a0d0e912308618ea33d0337f405c3 irqchip: Add LoongArch CPU interrupt controller support
date:   13 days ago
config: loongarch-randconfig-r032-20220801 (https://download.01.org/0day-ci/archive/20220802/202208021521.Z3FSeLUl-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b2d3e3354e2a0d0e912308618ea33d0337f405c3
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout b2d3e3354e2a0d0e912308618ea33d0337f405c3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-loongarch-cpu.c:61:26: warning: 'union acpi_subtable_headers' declared inside parameter list will not be visible outside of this definition or declaration
      61 | liointc_parse_madt(union acpi_subtable_headers *header,
         |                          ^~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-cpu.c:70:26: warning: 'union acpi_subtable_headers' declared inside parameter list will not be visible outside of this definition or declaration
      70 | eiointc_parse_madt(union acpi_subtable_headers *header,
         |                          ^~~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-cpu.c: In function 'acpi_cascade_irqdomain_init':
>> drivers/irqchip/irq-loongarch-cpu.c:80:9: error: implicit declaration of function 'acpi_table_parse_madt'; did you mean 'acpi_table_parse'? [-Werror=implicit-function-declaration]
      80 |         acpi_table_parse_madt(ACPI_MADT_TYPE_LIO_PIC,
         |         ^~~~~~~~~~~~~~~~~~~~~
         |         acpi_table_parse
>> drivers/irqchip/irq-loongarch-cpu.c:80:31: error: 'ACPI_MADT_TYPE_LIO_PIC' undeclared (first use in this function); did you mean 'ACPI_MADT_TYPE_IO_APIC'?
      80 |         acpi_table_parse_madt(ACPI_MADT_TYPE_LIO_PIC,
         |                               ^~~~~~~~~~~~~~~~~~~~~~
         |                               ACPI_MADT_TYPE_IO_APIC
   drivers/irqchip/irq-loongarch-cpu.c:80:31: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/irqchip/irq-loongarch-cpu.c:82:31: error: 'ACPI_MADT_TYPE_EIO_PIC' undeclared (first use in this function); did you mean 'ACPI_MADT_TYPE_IO_APIC'?
      82 |         acpi_table_parse_madt(ACPI_MADT_TYPE_EIO_PIC,
         |                               ^~~~~~~~~~~~~~~~~~~~~~
         |                               ACPI_MADT_TYPE_IO_APIC
   drivers/irqchip/irq-loongarch-cpu.c: At top level:
   drivers/irqchip/irq-loongarch-cpu.c:87:43: warning: 'union acpi_subtable_headers' declared inside parameter list will not be visible outside of this definition or declaration
      87 | static int __init cpuintc_acpi_init(union acpi_subtable_headers *header,
         |                                           ^~~~~~~~~~~~~~~~~~~~~
   In file included from include/acpi/actbl.h:371,
                    from include/acpi/acpi.h:26,
                    from include/linux/acpi.h:22,
                    from include/linux/irqchip.h:14,
                    from drivers/irqchip/irq-loongarch-cpu.c:10:
>> include/acpi/actbl2.h:33:33: error: expected ')' before string constant
      33 | #define ACPI_SIG_MADT           "APIC"  /* Multiple APIC Description Table */
         |                                 ^~~~~~
   include/linux/irqchip.h:77:43: note: in expansion of macro 'ACPI_SIG_MADT'
      77 |                                           ACPI_SIG_MADT, subtable,      \
         |                                           ^~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-cpu.c:110:1: note: in expansion of macro 'IRQCHIP_ACPI_DECLARE'
     110 | IRQCHIP_ACPI_DECLARE(cpuintc_v1, ACPI_MADT_TYPE_CORE_PIC,
         | ^~~~~~~~~~~~~~~~~~~~
   drivers/irqchip/irq-loongarch-cpu.c:87:19: warning: 'cpuintc_acpi_init' defined but not used [-Wunused-function]
      87 | static int __init cpuintc_acpi_init(union acpi_subtable_headers *header,
         |                   ^~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +80 drivers/irqchip/irq-loongarch-cpu.c

    77	
    78	static int __init acpi_cascade_irqdomain_init(void)
    79	{
  > 80		acpi_table_parse_madt(ACPI_MADT_TYPE_LIO_PIC,
    81				      liointc_parse_madt, 0);
  > 82		acpi_table_parse_madt(ACPI_MADT_TYPE_EIO_PIC,
    83				      eiointc_parse_madt, 0);
    84		return 0;
    85	}
    86	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ