Skip to content

Commit 65c24d7

Browse files
aweeramanIngo Molnar
authored andcommitted
x86/lib: Fix compiler and kernel-doc warnings
Fix the following W=1 warnings: arch/x86/lib/cmdline.c: - Include <asm/cmdline.h> to fix missing-prototypes warnings. - Update comment for __cmdline_find_option_bool to fix a kernel-doc warning. Signed-off-by: Anuradha Weeraman <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4651b94 commit 65c24d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/x86/lib/cmdline.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
#include <linux/string.h>
88
#include <linux/ctype.h>
99
#include <asm/setup.h>
10+
#include <asm/cmdline.h>
1011

1112
static inline int myisspace(u8 c)
1213
{
1314
return c <= ' '; /* Close enough approximation */
1415
}
1516

16-
/**
17+
/*
1718
* Find a boolean option (like quiet,noapic,nosmp....)
1819
*
1920
* @cmdline: the cmdline string
21+
* @max_cmdline_size: the maximum size of cmdline
2022
* @option: option string to look for
2123
*
2224
* Returns the position of that @option (starts counting with 1)

0 commit comments

Comments
 (0)