diff options
author | Ingo Molnar <mingo@kernel.org> | 2019-11-26 08:00:09 +0000 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2019-12-10 10:15:47 +0100 |
commit | f803e34d4a25e1cf43f89f21e05176ed19223dc1 (patch) | |
tree | 414e5212bd235d5378e547669dbdc67250a77029 /arch/x86/platform/intel-quark | |
parent | 360db4ace3117ac1d9936d529f59c653e337b0f5 (diff) | |
download | linux-f803e34d4a25e1cf43f89f21e05176ed19223dc1.tar.bz2 |
x86/platform/intel/quark: Explicitly include linux/io.h for virt_to_phys()
Similarly to the previous patches by Sean Christopherson:
"Through a labyrinthian sequence of includes, usage of virt_to_phys() is
dependent on the include of asm/io.h in x86's asm/realmode.h, which is
included in x86's asm/acpi.h and thus by linux/acpi.h. Explicitly
include linux/io.h to break the dependency on realmode.h so that a
future patch can remove the realmode.h include from acpi.h without
breaking the build."
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Link: https://lkml.kernel.org/r/157475520975.21853.16355518818746065226.tip-bot2@tip-bot2
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/platform/intel-quark')
-rw-r--r-- | arch/x86/platform/intel-quark/imr.c | 2 | ||||
-rw-r--r-- | arch/x86/platform/intel-quark/imr_selftest.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/platform/intel-quark/imr.c b/arch/x86/platform/intel-quark/imr.c index 6dd25dc5f027..e9d97d52475e 100644 --- a/arch/x86/platform/intel-quark/imr.c +++ b/arch/x86/platform/intel-quark/imr.c @@ -29,6 +29,8 @@ #include <asm/cpu_device_id.h> #include <asm/imr.h> #include <asm/iosf_mbi.h> +#include <asm/io.h> + #include <linux/debugfs.h> #include <linux/init.h> #include <linux/mm.h> diff --git a/arch/x86/platform/intel-quark/imr_selftest.c b/arch/x86/platform/intel-quark/imr_selftest.c index 42f879b75f9b..4307830e1b6f 100644 --- a/arch/x86/platform/intel-quark/imr_selftest.c +++ b/arch/x86/platform/intel-quark/imr_selftest.c @@ -14,6 +14,8 @@ #include <asm-generic/sections.h> #include <asm/cpu_device_id.h> #include <asm/imr.h> +#include <asm/io.h> + #include <linux/init.h> #include <linux/mm.h> #include <linux/types.h> |