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
Unified · Split
| @@ -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 | ||
| 11 | static inline int myisspace(u8 c) | 12 | static 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 string | 20 | * @cmdline: the cmdline string |
| 21 | * @max_cmdline_size: the maximum size of cmdline | ||
| 20 | * @option: option string to look for | 22 | * @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) |
| @@ -1,4 +1,6 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // 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 | * |