From: Kirill A. Shutemov Date: Sun, 10 Apr 2022 20:00:25 +0000 (+0300) Subject: x86/kaslr: Fix build warning in KASLR code in boot stub X-Git-Tag: v6.1-rc5~1346^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adb5680b8dfdd09756f13450bfc1ed874d895935;p=platform%2Fkernel%2Flinux-starfive.git x86/kaslr: Fix build warning in KASLR code in boot stub lib/kaslr.c is used by both the main kernel and the boot stub. It includes asm/io.h which is supposed to be used in the main kernel. It leads to build warnings like this with clang 13: warning: implicit declaration of function 'outl' is invalid in C99 [-Wimplicit-function-declaration] Replace with which is suitable for both cases. Fixes: 1e8f93e18379 ("x86: Consolidate port I/O helpers") Reported-by: Borislav Petkov Signed-off-by: Kirill A. Shutemov Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220410200025.3stf4jjvwfe5oxew@box.shutemov.name --- diff --git a/arch/x86/lib/kaslr.c b/arch/x86/lib/kaslr.c index 2b3eb8c..a58f451 100644 --- a/arch/x86/lib/kaslr.c +++ b/arch/x86/lib/kaslr.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include /* * When built for the regular kernel, several functions need to be stubbed out