Al, Graeme,
Do you have the .config file? Build still fails.
CC arch/arm64/kvm/../../../virt/kvm/arm/vgic.o CC arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.o arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c: In function ‘vgic_v2_acpi_probe’: arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:276:8: error: implicit declaration of function ‘acpi_table_parse_madt’ [-Werror=implicit-function-declaration] ret = acpi_table_parse_madt(ACPI_MADT_TYPE_GENERIC_INTERRUPT, ^ arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:277:5: error: ‘acpi_tbl_entry_handler’ undeclared (first use in this function) (acpi_tbl_entry_handler)gic_get_acpi_header, 0); ^ arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:277:5: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:277:28: error: expected ‘)’ before ‘gic_get_acpi_header’ (acpi_tbl_entry_handler)gic_get_acpi_header, 0); ^ arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:290:20: error: implicit declaration of function ‘acpi_register_gsi’ [-Werror=implicit-function-declaration] vgic->maint_irq = acpi_register_gsi(NULL, vgic_acpi->vgic_interrupt, ^ arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c: At top level: arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.c:264:13: warning: ‘gic_get_acpi_header’ defined but not used [-Wunused-function] static void gic_get_acpi_header(struct acpi_subtable_header *header) ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target 'arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.o' failed make[1]: *** [arch/arm64/kvm/../../../virt/kvm/arm/vgic-v2.o] Error 1 Makefile:943: recipe for target 'arch/arm64/kvm' failed make: *** [arch/arm64/kvm] Error 2
On 7/10/15 1:23 AM, Al Stone wrote:
On 07/09/2015 04:59 AM, G Gregory wrote:
On 9 July 2015 at 06:17, Itaru Kitayama itaru.kitayama@riken.jp wrote:
Hi,
Build of the topic branch fails with an error:
CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC arch/arm64/kernel/setup.o arch/arm64/kernel/setup.c: In function ‘arm64_spcr_setup’: arch/arm64/kernel/setup.c:603:3: error: implicit declaration of function ‘acpi_setup_spcr’ [-Werror=implicit-function-declaration] acpi_setup_spcr(); ^ cc1: some warnings being treated as errors scripts/Makefile.build:258: recipe for target 'arch/arm64/kernel/setup.o' failed make[1]: *** [arch/arm64/kernel/setup.o] Error 1 Makefile:943: recipe for target 'arch/arm64/kernel' failed make: *** [arch/arm64/kernel] Error 2
Looks like Al forgot this patch.
http://git.linaro.org/leg/acpi/acpi.git/commit/325c9758bd4b7f35faa83e1fb8933...
I assume he will update the tree later.
Quick fix is to set CONFIG_ACPI_SPCR in .config
Graeme
Whoops. My apologies. I had CONFIG_ACPI_SPCR set already so I missed this. I pushed the patch mentioned into the topic branch.