[driver-core:driver-core-testing 4/14] arch/ia64/kernel/acpi.c:669:38: error: passing argument 2 of 'acpi_table_parse' from incompatible pointer type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing
head:   5e29ef654e7be73a579b96c1b912dac5cea33046
commit: 088d0b345be1952be1a5004fb78cfffa0835cbe1 [4/14] acpi: Create subtable parsing infrastructure
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 088d0b345be1952be1a5004fb78cfffa0835cbe1
        # save the attached .config to linux build tree
        GCC_VERSION=8.1.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   arch/ia64/kernel/acpi.c: In function 'early_acpi_boot_init':
>> arch/ia64/kernel/acpi.c:669:38: error: passing argument 2 of 'acpi_table_parse' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (acpi_table_parse(ACPI_SIG_MADT, acpi_parse_madt)) {
                                         ^~~~~~~~~~~~~~~
   In file included from arch/ia64/kernel/acpi.c:43:
   include/linux/acpi.h:241:55: note: expected 'acpi_tbl_table_handler' {aka 'int (*)(struct acpi_table_header *)'} but argument is of type 'int (*)(union acpi_subtable_headers *)'
    int acpi_table_parse(char *id, acpi_tbl_table_handler handler);
                                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
   arch/ia64/kernel/acpi.c: In function 'acpi_boot_init':
   arch/ia64/kernel/acpi.c:710:38: error: passing argument 2 of 'acpi_table_parse' from incompatible pointer type [-Werror=incompatible-pointer-types]
     if (acpi_table_parse(ACPI_SIG_MADT, acpi_parse_madt)) {
                                         ^~~~~~~~~~~~~~~
   In file included from arch/ia64/kernel/acpi.c:43:
   include/linux/acpi.h:241:55: note: expected 'acpi_tbl_table_handler' {aka 'int (*)(struct acpi_table_header *)'} but argument is of type 'int (*)(union acpi_subtable_headers *)'
    int acpi_table_parse(char *id, acpi_tbl_table_handler handler);
                                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
   cc1: some warnings being treated as errors

vim +/acpi_table_parse +669 arch/ia64/kernel/acpi.c

^1da177e Linus Torvalds 2005-04-16  660  
62ee0540 Doug Chapman   2008-11-05  661  int __init early_acpi_boot_init(void)
62ee0540 Doug Chapman   2008-11-05  662  {
62ee0540 Doug Chapman   2008-11-05  663  	int ret;
62ee0540 Doug Chapman   2008-11-05  664  
62ee0540 Doug Chapman   2008-11-05  665  	/*
62ee0540 Doug Chapman   2008-11-05  666  	 * do a partial walk of MADT to determine how many CPUs
62ee0540 Doug Chapman   2008-11-05  667  	 * we have including offline CPUs
62ee0540 Doug Chapman   2008-11-05  668  	 */
62ee0540 Doug Chapman   2008-11-05 @669  	if (acpi_table_parse(ACPI_SIG_MADT, acpi_parse_madt)) {
62ee0540 Doug Chapman   2008-11-05  670  		printk(KERN_ERR PREFIX "Can't find MADT\n");
62ee0540 Doug Chapman   2008-11-05  671  		return 0;
62ee0540 Doug Chapman   2008-11-05  672  	}
62ee0540 Doug Chapman   2008-11-05  673  
62ee0540 Doug Chapman   2008-11-05  674  	ret = acpi_table_parse_madt(ACPI_MADT_TYPE_LOCAL_SAPIC,
62ee0540 Doug Chapman   2008-11-05  675  		acpi_parse_lsapic, NR_CPUS);
62ee0540 Doug Chapman   2008-11-05  676  	if (ret < 1)
62ee0540 Doug Chapman   2008-11-05  677  		printk(KERN_ERR PREFIX
62ee0540 Doug Chapman   2008-11-05  678  		       "Error parsing MADT - no LAPIC entries\n");
247dba58 Baoquan He     2014-05-05  679  	else
247dba58 Baoquan He     2014-05-05  680  		acpi_lapic = 1;
62ee0540 Doug Chapman   2008-11-05  681  

:::::: The code at line 669 was first introduced by commit
:::::: 62ee0540f5e5a804b79cae8b3c0185a85f02436b [IA64] fix boot panic caused by offline CPUs

:::::: TO: Doug Chapman <doug.chapman@xxxxxx>
:::::: CC: Tony Luck <tony.luck@xxxxxxxxx>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux