From: Ingo Molnar Date: Tue, 26 Nov 2019 08:00:09 +0000 (+0000) Subject: x86/platform/intel/quark: Explicitly include linux/io.h for virt_to_phys() X-Git-Tag: v5.6-rc1~173^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f803e34d4a25e1cf43f89f21e05176ed19223dc1;p=thirdparty%2Fkernel%2Flinux.git 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 Cc: Sean Christopherson Link: https://lkml.kernel.org/r/157475520975.21853.16355518818746065226.tip-bot2@tip-bot2 Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/platform/intel-quark/imr.c b/arch/x86/platform/intel-quark/imr.c index 6dd25dc5f0279..e9d97d52475e1 100644 --- a/arch/x86/platform/intel-quark/imr.c +++ b/arch/x86/platform/intel-quark/imr.c @@ -29,6 +29,8 @@ #include #include #include +#include + #include #include #include diff --git a/arch/x86/platform/intel-quark/imr_selftest.c b/arch/x86/platform/intel-quark/imr_selftest.c index 42f879b75f9b9..4307830e1b6f0 100644 --- a/arch/x86/platform/intel-quark/imr_selftest.c +++ b/arch/x86/platform/intel-quark/imr_selftest.c @@ -14,6 +14,8 @@ #include #include #include +#include + #include #include #include