[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

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Apr 3 08:44:36 UTC 2019


On Wed, Apr 03, 2019 at 02:18:18AM +0800, kbuild test robot wrote:
> 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);

Keith, any ideas about this?

thanks,

greg k-h


More information about the devel mailing list