From 07a642b7c13b66372dcf80d7790a0cb384af675f Mon Sep 17 00:00:00 2001 From: FPSensor Date: Sat, 7 Oct 2023 07:19:43 +0000 Subject: [PATCH] tty: diag: Fix strict-prototypes errors drivers/tty/diag/tty_diag.c:323:38: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] void tty_diag_channel_abandon_request() ^ void drivers/tty/diag/tty_diag.c:333:36: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] int tty_diag_get_dbg_ftm_flag_value() ^ void 2 errors generated. Change-Id: I76f72b1037afaf473956345229fea19d7882c52b --- drivers/tty/diag/tty_diag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/diag/tty_diag.c b/drivers/tty/diag/tty_diag.c index c9570251e650..0c37bb110c7d 100644 --- a/drivers/tty/diag/tty_diag.c +++ b/drivers/tty/diag/tty_diag.c @@ -320,7 +320,7 @@ int tty_diag_channel_write(struct usb_diag_ch *diag_ch, } EXPORT_SYMBOL(tty_diag_channel_write); -void tty_diag_channel_abandon_request() +void tty_diag_channel_abandon_request(void) { unsigned long flags; @@ -330,7 +330,7 @@ void tty_diag_channel_abandon_request() } EXPORT_SYMBOL(tty_diag_channel_abandon_request); -int tty_diag_get_dbg_ftm_flag_value() +int tty_diag_get_dbg_ftm_flag_value(void) { return dbg_ftm_flag; }