forked from TencentOS/TencentOS-kernel
when open CONFIG_ACPI_APEI on arm64, the compile error as below: drivers/acpi/apei/hest.c: In function ‘hest_parse_ghes_count’: drivers/acpi/apei/hest.c:146:7: error: ‘boot_cpu_data’ undeclared (first use in this function); did you mean ‘bootmem_data’? (boot_cpu_data.x86_vendor != X86_VENDOR_AMD || ^~~~~~~~~~~~~ bootmem_data drivers/acpi/apei/hest.c:146:7: note: each undeclared identifier is reported only once for each function it appears in drivers/acpi/apei/hest.c:146:35: error: ‘X86_VENDOR_AMD’ undeclared (first use in this function); did you mean ‘X86_VENDOR_ANY’? (boot_cpu_data.x86_vendor != X86_VENDOR_AMD || ^~~~~~~~~~~~~~ X86_VENDOR_ANY drivers/acpi/apei/hest.c: In function ‘hest_parse_ghes’: drivers/acpi/apei/hest.c:161:7: error: ‘boot_cpu_data’ undeclared (first use in this function); did you mean ‘bootmem_data’? boot_cpu_data.x86_vendor == X86_VENDOR_AMD)) ^~~~~~~~~~~~~ bootmem_data drivers/acpi/apei/hest.c:161:35: error: ‘X86_VENDOR_AMD’ undeclared (first use in this function); did you mean ‘X86_VENDOR_ANY’? boot_cpu_data.x86_vendor == X86_VENDOR_AMD)) ^~~~~~~~~~~~~~ X86_VENDOR_ANY make[3]: *** [scripts/Makefile.build:261: drivers/acpi/apei/hest.o] Error 1 make[2]: *** [scripts/Makefile.build:496: drivers/acpi/apei] Error 2 make[1]: *** [scripts/Makefile.build:496: drivers/acpi] Error 2 make: *** [Makefile:1734: drivers] Error 2 |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| apei-base.c | ||
| apei-internal.h | ||
| bert.c | ||
| einj.c | ||
| erst-dbg.c | ||
| erst.c | ||
| ghes.c | ||
| hest.c | ||