mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Huacai Chen <chenhuacai@loongson.cn>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Marc Zyngier <maz@kernel.org>, Jianmin Lv <lvjianmin@loongson.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'?
Date: Tue, 2 Aug 2022 15:41:10 +0800	[thread overview]
Message-ID: <202208021521.Z3FSeLUl-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-08-02  7:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202208021521.Z3FSeLUl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chenhuacai@loongson.cn \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lvjianmin@loongson.cn \
    --cc=maz@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®