diff options
author | Ingo Molnar <[email protected]> | 2017-07-20 11:23:07 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2017-07-20 11:37:58 +0200 |
commit | 693bf0aa01b7f9a1b24b2b932d555c6667f17a1a (patch) | |
tree | c608582e9af02c3555b3916e07ecbc236d0eca8b | |
parent | aca20d5462149333ba8b24a4a352be5b7a00dfd2 (diff) |
x86/boot: Fix memremap() related build failure
The following commit:
5997efb96756 ("x86/boot: Use memremap() to map the MPF and MPC data")
causes new build failures on certain randconfigs:
drivers/sfi/sfi_core.c: In function ‘sfi_map_memory’:
drivers/sfi/sfi_core.c:104:10: error: implicit declaration of function ‘memremap’ [-Werror=implicit-function-declaration]
drivers/sfi/sfi_core.c:104:31: error: ‘MEMREMAP_WB’ undeclared (first use in this function)
This is a case of parasitic header dependencies: the sfi_core.c file indirectly
includes <linux/io.h> for typical - but not all configs.
Including <linux/io.h> explicitly solves the build failure.
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
-rw-r--r-- | drivers/sfi/sfi_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/sfi/sfi_core.c b/drivers/sfi/sfi_core.c index d5ce53491efb..153b3f3cc795 100644 --- a/drivers/sfi/sfi_core.c +++ b/drivers/sfi/sfi_core.c @@ -68,6 +68,7 @@ #include <linux/init.h> #include <linux/sfi.h> #include <linux/slab.h> +#include <linux/io.h> #include "sfi_core.h" |