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
This commit is contained in:
FPSensor authored and Michael Bestas committed 2024-01-07 15:54:51 +02:00
1 parent 37cc1b47bc
commit 07a642b7c1
1 file changed
+2 -2
+2 -2
View File
@@ -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;
}