OSDN Git Service

kdb: include kdb_private.h for function prototypes
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 May 2023 12:47:53 +0000 (14:47 +0200)
committerDaniel Thompson <daniel.thompson@linaro.org>
Thu, 29 Jun 2023 14:10:17 +0000 (15:10 +0100)
commit0914e4d3cda853471a72b2c26a516c7619658b87
treeb2b7f620a7a4567b08dec28333e40e2e9c94b97b
parent8117f948f12bc559edf40916e7693512c8c9a50b
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>
kernel/debug/kdb/kdb_keyboard.c