Skip to content

Commit 0914e4d

Browse files
arndbDaniel Thompson
authored andcommitted
kdb: include kdb_private.h for function prototypes
The kdb_kbd_cleanup_state() is called from another file through the kdb_private.h file, but that is not included before the definition, causing a W=1 warning: kernel/debug/kdb/kdb_keyboard.c:198:6: error: no previous prototype for 'kdb_kbd_cleanup_state' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20230517124802.929751-1-arnd@kernel.org Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
1 parent 8117f94 commit 0914e4d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

kernel/debug/kdb/kdb_keyboard.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <linux/ctype.h>
1414
#include <linux/io.h>
1515

16+
#include "kdb_private.h"
17+
1618
/* Keyboard Controller Registers on normal PCs. */
1719

1820
#define KBD_STATUS_REG 0x64 /* Status register (R) */

0 commit comments

Comments
 (0)