History

Merge tag 'x86-asm-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 asm updates from Ingo Molnar: "Header fixes and a DocBook fix" * tag 'x86-asm-2023-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/lib: Fix compiler and kernel-doc warnings x86/lib: Include <asm/misc.h> to fix a missing prototypes warning at build time

Linus Torvalds committed 3 years ago

Commit 6be3daf2 parents 1f2d9ff 65c24d72 files · +5 −1Browse files

Unified · Split

2 files
  1. arch/x86/lib/cmdline.c +3 −1
  2. arch/x86/lib/misc.c +2 −0
arch/x86/lib/cmdline.c+3−1
@@ -7,16 +7,18 @@ · 6 unmodified lines
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)
arch/x86/lib/misc.c+2−0
@@ -1,4 +1,6 @@
11 // SPDX-License-Identifier: GPL-2.0
2+#include <asm/misc.h>
3+
24 /*
35 * Count the digits of @val including a possible sign.
46 *