From 4651b9438b69ffa771c6e94020920a026ba86e98 Mon Sep 17 00:00:00 2001 From: Anuradha Weeraman Date: Tue, 3 Jan 2023 09:16:34 +0530 Subject: x86/lib: Include to fix a missing prototypes warning at build time Signed-off-by: Anuradha Weeraman Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230103034637.74679-1-anuradha@debian.org --- arch/x86/lib/misc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/x86/lib') diff --git a/arch/x86/lib/misc.c b/arch/x86/lib/misc.c index a018ec4fba53..92cd8ecc3a2c 100644 --- a/arch/x86/lib/misc.c +++ b/arch/x86/lib/misc.c @@ -1,4 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include + /* * Count the digits of @val including a possible sign. * -- cgit v1.2.3 From 65c24d7b0f9142c6acc9bd6dabeba22767077681 Mon Sep 17 00:00:00 2001 From: Anuradha Weeraman Date: Tue, 3 Jan 2023 17:17:24 +0530 Subject: x86/lib: Fix compiler and kernel-doc warnings Fix the following W=1 warnings: arch/x86/lib/cmdline.c: - Include to fix missing-prototypes warnings. - Update comment for __cmdline_find_option_bool to fix a kernel-doc warning. Signed-off-by: Anuradha Weeraman Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20230103114725.108431-1-anuradha@debian.org --- arch/x86/lib/cmdline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/x86/lib') diff --git a/arch/x86/lib/cmdline.c b/arch/x86/lib/cmdline.c index b6da09339308..80570eb3c89b 100644 --- a/arch/x86/lib/cmdline.c +++ b/arch/x86/lib/cmdline.c @@ -7,16 +7,18 @@ #include #include #include +#include static inline int myisspace(u8 c) { return c <= ' '; /* Close enough approximation */ } -/** +/* * Find a boolean option (like quiet,noapic,nosmp....) * * @cmdline: the cmdline string + * @max_cmdline_size: the maximum size of cmdline * @option: option string to look for * * Returns the position of that @option (starts counting with 1) -- cgit v1.2.3