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
7#include <linux/string.h>7#include <linux/string.h>
8#include <linux/ctype.h>8#include <linux/ctype.h>
9#include <asm/setup.h>9#include <asm/setup.h>
10#include <asm/cmdline.h>
10 11
11static inline int myisspace(u8 c)12static inline int myisspace(u8 c)
12{13{
13 return c <= ' '; /* Close enough approximation */14 return c <= ' '; /* Close enough approximation */
14}15}
15 16
16/**17/*
17 * Find a boolean option (like quiet,noapic,nosmp....)18 * Find a boolean option (like quiet,noapic,nosmp....)
18 *19 *
19 * @cmdline: the cmdline string20 * @cmdline: the cmdline string
21 * @max_cmdline_size: the maximum size of cmdline
20 * @option: option string to look for22 * @option: option string to look for
21 *23 *
22 * Returns the position of that @option (starts counting with 1)24 * Returns the position of that @option (starts counting with 1)
arch/x86/lib/misc.c+2−0
@@ -1,4 +1,6 @@
1// SPDX-License-Identifier: GPL-2.01// SPDX-License-Identifier: GPL-2.0
2#include <asm/misc.h>
3
2/*4/*
3 * Count the digits of @val including a possible sign.5 * Count the digits of @val including a possible sign.
4 *6 *