Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <objecting@objecting.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>

authored by

Josh Law and committed by
Masami Hiramatsu (Google)
2564fa0b 306c36a7

+3 -1
+3 -1
lib/bootconfig.c
··· 17 17 #include <linux/bug.h> 18 18 #include <linux/ctype.h> 19 19 #include <linux/errno.h> 20 - #include <linux/kernel.h> 20 + #include <linux/cache.h> 21 + #include <linux/compiler.h> 22 + #include <linux/sprintf.h> 21 23 #include <linux/memblock.h> 22 24 #include <linux/string.h> 23 25