Rid W=1 warnings from TTY
Subsystems (4)
cover Rid W=1 warnings from TTY
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
Lee Jones (11):
tty: vt: selection: Correct misspelled function sel_loadlut()
tty: serdev: core: Fix misspelled function name
__serdev_device_driver_register()
tty: tty_io: Fix a few kernel-doc related misdemeanours
tty: n_tty: Fix some misdocumented functions
tty: tty_buffer: Fix incorrectly documented function
__tty_buffer_request_room()
tty: tty_jobctrl: Fix 2 incorrectly documented functions
tty: pty: Fix incorrectly named function pty_resize()
tty: n_hdlc: Fix a little doc-rot in n_hdlc_tty_read()
tty: serial: st-asc: Demote a kernel-doc formatting abuse
tty: n_gsm: Fix function naming and provide missing param descriptions
tty: serial: xilinx_uartps: Fix documentation for
cdns_uart_clk_notifier_cb()
drivers/tty/n_gsm.c | 6 ++++-- drivers/tty/n_hdlc.c | 4 +++- drivers/tty/n_tty.c | 10 +++++----- drivers/tty/pty.c | 2 +- drivers/tty/serdev/core.c | 2 +- drivers/tty/serial/st-asc.c | 2 +- drivers/tty/serial/xilinx_uartps.c | 2 +- drivers/tty/tty_buffer.c | 2 +- drivers/tty/tty_io.c | 17 +++++------------ drivers/tty/tty_jobctrl.c | 4 ++-- drivers/tty/vt/selection.c | 2 +- 11 files changed, 25 insertions(+), 28 deletions(-)
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/11 tty: vt: selection: Correct misspelled function sel_loadlut()
Fixes the following W=1 kernel build warning(s):
drivers/tty/vt/selection.c:119: warning: expecting prototype for set loadlut(). Prototype was for sel_loadlut() instead
--- drivers/tty/vt/selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/vt/selection.c +1 -1
@@ -109,7 +109,7 @@ static inline int inword(const u32 c) }/** -* set loadlut - load the LUT table +* sel_loadlut() - load the LUT table * @p: user table * * Load the LUT table from user space. The caller must hold the console
Signature · 1 line
2.31.1
PATCH 2/11 tty: serdev: core: Fix misspelled function name __serdev_device_driver_register()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/serdev/core.c:809: warning: expecting prototype for serdev_driver_register(). Prototype was for __serdev_device_driver_register() instead
--- drivers/tty/serdev/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serdev/core.c +1 -1
@@ -798,7 +798,7 @@ void serdev_controller_remove(struct serdev_controller *ctrl)EXPORT_SYMBOL_GPL (serdev_controller_remove);/** -* serdev_driver_register() - Register client driver with serdev core +* __serdev_device_driver_register() - Register client driver with serdev core * @sdrv: client driver to be associated with client-device. * @owner: client driver owner to set. *
Signature · 1 line
2.31.1
PATCH 3/11 tty: tty_io: Fix a few kernel-doc related misdemeanours
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/tty_io.c:785: warning: expecting prototype for stop_tty(). Prototype was for __stop_tty() instead drivers/tty/tty_io.c:816: warning: expecting prototype for start_tty(). Prototype was for __start_tty() instead drivers/tty/tty_io.c:931: warning: Function parameter or member 'iocb' not described in 'tty_read' drivers/tty/tty_io.c:931: warning: Function parameter or member 'to' not described in 'tty_read' drivers/tty/tty_io.c:931: warning: Excess function parameter 'file' description in 'tty_read' drivers/tty/tty_io.c:931: warning: Excess function parameter 'buf' description in 'tty_read' drivers/tty/tty_io.c:931: warning: Excess function parameter 'count' description in 'tty_read' drivers/tty/tty_io.c:931: warning: Excess function parameter 'ppos' description in 'tty_read' drivers/tty/tty_io.c:1115: warning: Function parameter or member 'iocb' not described in 'file_tty_write' drivers/tty/tty_io.c:1115: warning: Function parameter or member 'from' not described in 'file_tty_write' drivers/tty/tty_io.c:1115: warning: expecting prototype for tty_write(). Prototype was for file_tty_write() instead
--- drivers/tty/tty_io.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-)
drivers/tty/tty_io.c +4 -11
@@ -762,7 +762,7 @@ int tty_hung_up_p(struct file *filp)EXPORT_SYMBOL (tty_hung_up_p);/** -* stop_tty - propagate flow control +* __stop_tty - propagate flow control * @tty: tty to stop * * Perform flow control to the driver. May be called
@@ -798,7 +798,7 @@ void stop_tty(struct tty_struct *tty)EXPORT_SYMBOL (stop_tty);/** -* start_tty - propagate flow control +* __start_tty - propagate flow control * @tty: tty to start * * Start a tty that has been stopped if at all possible. If this
@@ -909,12 +909,8 @@ static int iterate_tty_read(struct tty_ldisc *ld, struct tty_struct *tty, } -/** +/* * tty_read - read method for tty device files -* @file: pointer to tty file -* @buf: user buffer -* @count: size of user buffer -* @ppos: unused * * Perform the read system call function on this terminal device. Checks * for hung up devices before calling the line discipline method.
@@ -1093,12 +1089,9 @@ void tty_write_message(struct tty_struct *tty, char *msg) } -/** +/* * tty_write - write method for tty device file * @file: tty file pointer -* @buf: user data to write -* @count: bytes to write -* @ppos: unused * * Write data to a tty device via the line discipline. *
Signature · 1 line
2.31.1
PATCH 4/11 tty: n_tty: Fix some misdocumented functions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/n_tty.c:623: warning: expecting prototype for process_echoes(). Prototype was for __process_echoes() instead drivers/tty/n_tty.c:1109: warning: expecting prototype for isig(). Prototype was for __isig() instead drivers/tty/n_tty.c:1268: warning: expecting prototype for n_tty_receive_char(). Prototype was for n_tty_receive_char_special() instead drivers/tty/n_tty.c:2132: warning: Function parameter or member 'kbuf' not described in 'n_tty_read' drivers/tty/n_tty.c:2132: warning: Function parameter or member 'cookie' not described in 'n_tty_read' drivers/tty/n_tty.c:2132: warning: Function parameter or member 'offset' not described in 'n_tty_read' drivers/tty/n_tty.c:2132: warning: Excess function parameter 'buf' description in 'n_tty_read'
--- drivers/tty/n_tty.c | 10 +++++----- drivers/tty/tty_io.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-)
drivers/tty/n_tty.c +5 -5
@@ -596,7 +596,7 @@ static ssize_t process_output_block(struct tty_struct *tty, }/** -* process_echoes - write pending echo characters +* __process_echoes - write pending echo characters * @tty: terminal device * * Write previously buffered echo (and other ldisc-generated)
@@ -1092,7 +1092,7 @@ static void eraser(unsigned char c, struct tty_struct *tty) }/** -* isig - handle the ISIG optio +* __isig - handle the ISIG optio * @sig: signal * @tty: terminal *
@@ -1248,7 +1248,7 @@ n_tty_receive_signal_char(struct tty_struct *tty, int signal, unsigned char c) }/** -* n_tty_receive_char - perform processing +* n_tty_receive_char_special - perform processing * @tty: terminal device * @c: character *
@@ -2042,11 +2042,11 @@ static int job_control(struct tty_struct *tty, struct file *file) } -/** +/* * n_tty_read - read function for tty * @tty: tty device * @file: file object -* @buf: userspace buffer pointer +* @kbuf: userspace buffer pointer * @nr: size of I/O * * Perform reads for the line discipline. We are guaranteed that the
drivers/tty/tty_io.c +1 -1
@@ -1090,7 +1090,7 @@ void tty_write_message(struct tty_struct *tty, char *msg)/* -* tty_write - write method for tty device file +* file_tty_write - write method for tty device file * @file: tty file pointer * * Write data to a tty device via the line discipline.
Signature · 1 line
2.31.1
PATCH 5/11 tty: tty_buffer: Fix incorrectly documented function __tty_buffer_request_room()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/tty_buffer.c:259: warning: expecting prototype for tty_buffer_request_room(). Prototype was for __tty_buffer_request_room() instead
--- drivers/tty/tty_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/tty_buffer.c +1 -1
@@ -244,7 +244,7 @@ void tty_buffer_flush(struct tty_struct *tty, struct tty_ldisc *ld) }/** -* tty_buffer_request_room - grow tty buffer if needed +* __tty_buffer_request_room - grow tty buffer if needed * @port: tty port * @size: size desired * @flags: buffer flags if new buffer allocated (default = 0)
Signature · 1 line
2.31.1
PATCH 6/11 tty: tty_jobctrl: Fix 2 incorrectly documented functions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/tty_jobctrl.c:33: warning: expecting prototype for tty_check_change(). Prototype was for __tty_check_change() instead drivers/tty/tty_jobctrl.c:97: warning: expecting prototype for proc_set_tty(). Prototype was for __proc_set_tty() instead
--- drivers/tty/tty_jobctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/tty/tty_jobctrl.c +2 -2
@@ -20,7 +20,7 @@ static int is_ignored(int sig) }/** -* tty_check_change - check for POSIX terminal changes +* __tty_check_change - check for POSIX terminal changes * @tty: tty to check * @sig: signal to send *
@@ -85,7 +85,7 @@ void proc_clear_tty(struct task_struct *p) }/** -* proc_set_tty - set the controlling terminal +* __proc_set_tty - set the controlling terminal * @tty: tty structure * * Only callable by the session leader and only if it does not already have
Signature · 1 line
2.31.1
PATCH 7/11 tty: pty: Fix incorrectly named function pty_resize()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/pty.c:306: warning: expecting prototype for pty_do_resize(). Prototype was for pty_resize() instead
--- drivers/tty/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/pty.c +1 -1
@@ -282,7 +282,7 @@ static void pty_set_termios(struct tty_struct *tty, }/** -* pty_do_resize - resize event +* pty_resize - resize event * @tty: tty being resized * @ws: window size being set. *
Signature · 1 line
2.31.1
PATCH 8/11 tty: n_hdlc: Fix a little doc-rot in n_hdlc_tty_read()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/n_hdlc.c:421: warning: Function parameter or member 'kbuf' not described in 'n_hdlc_tty_read' drivers/tty/n_hdlc.c:421: warning: Function parameter or member 'cookie' not described in 'n_hdlc_tty_read' drivers/tty/n_hdlc.c:421: warning: Function parameter or member 'offset' not described in 'n_hdlc_tty_read' drivers/tty/n_hdlc.c:421: warning: Excess function parameter 'buf' description in 'n_hdlc_tty_read'
--- drivers/tty/n_hdlc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/tty/n_hdlc.c +3 -1
@@ -411,8 +411,10 @@ static void n_hdlc_tty_receive(struct tty_struct *tty, const __u8 *data,* n_hdlc_tty_read - Called to retrieve one frame of data (if available) * @tty: pointer to tty instance data * @file: pointer to open file object -* @buf: pointer to returned data buffer +* @kbuf: pointer to returned data buffer * @nr: size of returned data buffer +* @cookie: stored rbuf from previous run +* @offset: offset into the data buffer * * Returns the number of bytes returned or error code. */
Signature · 1 line
2.31.1
PATCH 9/11 tty: serial: st-asc: Demote a kernel-doc formatting abuse
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/serial/st-asc.c:73: warning: expecting prototype for Some of status comes from higher bits of the character and some come from(). Prototype was for ASC_RXBUF_DUMMY_RX() instead
--- drivers/tty/serial/st-asc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/st-asc.c +1 -1
@@ -65,7 +65,7 @@ static struct uart_driver asc_uart_driver;/* ASC_RXBUF */ #define ASC_RXBUF_PE 0x100#define ASC_RXBUF_FE 0x200 -/** +/* * Some of status comes from higher bits of the character and some come from * the status register. Combining both of them in to single status using dummy * bits.
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 10/11 tty: n_gsm: Fix function naming and provide missing param descriptions
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/n_gsm.c:525: warning: expecting prototype for gsm_stuff_packet(). Prototype was for gsm_stuff_frame() instead drivers/tty/n_gsm.c:1608: warning: expecting prototype for gsm_dlci_control(). Prototype was for gsm_dlci_command() instead drivers/tty/n_gsm.c:2561: warning: Function parameter or member 'cookie' not described in 'gsmld_read' drivers/tty/n_gsm.c:2561: warning: Function parameter or member 'offset' not described in 'gsmld_read'
--- drivers/tty/n_gsm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/tty/n_gsm.c +4 -2
@@ -512,7 +512,7 @@ static void gsm_print_packet(const char *hdr, int addr, int cr,*/ /** -* gsm_stuff_packet - bytestuff a packet +* gsm_stuff_frame - bytestuff a packet * @input: input buffer * @output: output buffer * @len: length of input
@@ -1594,7 +1594,7 @@ static void gsm_dlci_data(struct gsm_dlci *dlci, const u8 *data, int clen) }/** -* gsm_dlci_control - data arrived on control channel +* gsm_dlci_command - data arrived on control channel * @dlci: channel * @data: block of bytes received * @len: length of received block
@@ -2557,6 +2557,8 @@ static void gsmld_write_wakeup(struct tty_struct *tty)* @file: file object * @buf: userspace buffer pointer * @nr: size of I/O +* @cookie: unused +* @offset: unused * * Perform reads for the line discipline. We are guaranteed that the * line discipline will not be closed under us but we may get multiple
Signature · 1 line
2.31.1
PATCH 11/11 tty: serial: xilinx_uartps: Fix documentation for cdns_uart_clk_notifier_cb()
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/tty/serial/xilinx_uartps.c:496: warning: expecting prototype for cdns_uart_clk_notitifer_cb(). Prototype was for cdns_uart_clk_notifier_cb() instead
--- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/xilinx_uartps.c +1 -1
@@ -484,7 +484,7 @@ static unsigned int cdns_uart_set_baud_rate(struct uart_port *port,#ifdef CONFIG_COMMON_CLK /** -* cdns_uart_clk_notitifer_cb - Clock notifier callback +* cdns_uart_clk_notifier_cb - Clock notifier callback * @nb: Notifier block * @event: Notify event * @data: Notifier data
Signature · 7 lines
2.31.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 11/11] tty: serial: xilinx_uartps: Fix documentation for cdns_uart_clk_notifier_cb()
Quoted 20 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/tty/serial/xilinx_uartps.c:496: warning: expecting prototype forcdns_uart_clk_notitifer_cb(). Prototype was forcdns_uart_clk_notifier_cb()insteadCc Greg Kroah-Hartman <[email protected]>Cc Jiri Slaby <[email protected]>Cc Michal Simek <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/tty/serial/xilinx_uartps.c +0
-0
drivers/tty/serial/xilinx_uartps.c static unsigned int cdns_uart_set_baud_rate(struct uart_port *port, · line 490
Quoted 8 lines
drivers/tty/serial/xilinx_uartps.c +1
-1@@ -484,7 +484,7 @@ static unsigned int cdns_uart_set_baud_rate(struct uart_port *port,#ifdef CONFIG_COMMON_CLK /** -* cdns_uart_clk_notitifer_cb - Clock notifier callback +* cdns_uart_clk_notifier_cb - Clock notifier callback * @nb: Notifier block * @event: Notify event * @data: Notifier data
Thanks,
Michal
Greg Kroah-Hartman
maintainerQuoted 3 lines · Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
All but 3 applied to my tree, you should rebase and resend those remaining ones as they conflicted with things that others recently changed.
thanks,
greg k-h