From: Josh Law Date: Wed, 18 Mar 2026 15:59:13 +0000 (+0000) Subject: lib/bootconfig: replace linux/kernel.h with specific includes X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2564fa0bb2dbee126cac03c9d916e6c6a7910f31;p=thirdparty%2Fkernel%2Flinux.git lib/bootconfig: replace linux/kernel.h with specific includes linux/kernel.h is a legacy catch-all header. Replace it with the specific headers actually needed: linux/cache.h for SMP_CACHE_BYTES, linux/compiler.h for unlikely(), and linux/sprintf.h for snprintf(). Link: https://lore.kernel.org/all/20260318155919.78168-8-objecting@objecting.org/ Signed-off-by: Josh Law Signed-off-by: Masami Hiramatsu (Google) --- diff --git a/lib/bootconfig.c b/lib/bootconfig.c index 1b4900053abee..0663b74ad1311 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -17,7 +17,9 @@ #include #include #include -#include +#include +#include +#include #include #include