linux-stable/arch
Nathan Chancellor ea7b4244b3 x86/setup: Explicitly include acpi.h
After commit 342f43af70 ("iscsi_ibft: fix crash due to KASLR physical
memory remapping") x86_64_defconfig shows the following errors:

  arch/x86/kernel/setup.c: In function ‘setup_arch’:
  arch/x86/kernel/setup.c:916:13: error: implicit declaration of function ‘acpi_mps_check’ [-Werror=implicit-function-declaration]
    916 |         if (acpi_mps_check()) {
        |             ^~~~~~~~~~~~~~
  arch/x86/kernel/setup.c:1110:9: error: implicit declaration of function ‘acpi_table_upgrade’ [-Werror=implicit-function-declaration]
   1110 |         acpi_table_upgrade();
        |         ^~~~~~~~~~~~~~~~~~
  [... more acpi noise ...]

acpi.h was being implicitly included from iscsi_ibft.h in this
configuration so the removal of that header means these functions have
no definition or declaration.

In most other configurations, <linux/acpi.h> continued to be included
through at least <linux/tboot.h> if CONFIG_INTEL_TXT was enabled, and
there were probably other implicit include paths too.

Add acpi.h explicitly so there is no more error, and so that we don't
continue to depend on these unreliable implicit include paths.

Tested-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Cc: Maurizio Lombardi <mlombard@redhat.com>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-01 10:17:05 -07:00
..
alpha TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
arc Updates to the interrupt core and driver subsystems: 2021-08-30 14:38:37 -07:00
arm Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
arm64 USB/Thunderbolt patches for 5.15-rc1 2021-09-01 09:59:34 -07:00
csky Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00
h8300 libata-5.14-2021-07-30 2021-07-30 10:56:47 -07:00
hexagon Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00
ia64 libata-5.14-2021-07-30 2021-07-30 10:56:47 -07:00
m68k TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
microblaze Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00
mips Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
nds32 nds32: fix up stack guard gap 2021-07-21 15:51:37 +02:00
nios2 nios2: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:41 +01:00
openrisc Kbuild updates for v5.14 2021-07-10 11:01:38 -07:00
parisc TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
powerpc Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
riscv for-5.15/block-2021-08-30 2021-08-30 18:52:11 -07:00
s390 Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
sh irqchip updates for Linux 5.15 2021-08-29 21:19:50 +02:00
sparc Driver core update for 5.15-rc1 2021-09-01 08:44:42 -07:00
um TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
x86 x86/setup: Explicitly include acpi.h 2021-09-01 10:17:05 -07:00
xtensa TTY / Serial patches for 5.15-rc1 2021-09-01 09:51:16 -07:00
.gitignore
Kconfig sched: Add task_work callback for paranoid L1D flush 2021-07-28 11:42:24 +02:00