Skip to content

Commit 6be3daf

Browse files
committed
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
2 parents 1f2d9ff + 65c24d7 commit 6be3daf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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)

arch/x86/lib/misc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
*

0 commit comments

Comments
 (0)