tty: n_tty: Fix some misdocumented functions
PATCH v2 1/1 tty: n_tty: Fix some misdocumented functions
Fixes 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: Excess function parameter 'buf' description in 'n_tty_read'
---
v2: Rebased
drivers/tty/n_tty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 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
Signature · 1 line
2.31.1
Jiri Slaby
maintainerQuoted 23 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/tty/n_tty.c:623: warning: expecting prototype forprocess_echoes(). Prototype was for__process_echoes()insteaddrivers/tty/n_tty.c:1109: warning: expecting prototype forisig(). Prototype was for__isig()insteaddrivers/tty/n_tty.c:1268: warning: expecting prototype forn_tty_receive_char(). Prototype was forn_tty_receive_char_special()insteaddrivers/tty/n_tty.c:2132: warning: Excess function parameter 'buf' description in 'n_tty_read'Cc Greg Kroah-Hartman <[email protected]>Cc Jiri Slaby <[email protected]>Cc "Andrew J. Kroll" <[email protected]>Cc processes-Sapan Bhatia <[email protected]>Signed-off-by Lee Jones <[email protected]>---
v2: Rebased
drivers/tty/n_tty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/tty/n_tty.c +0
-0
...
drivers/tty/n_tty.c n_tty_receive_signal_char(struct tty_struct *tty, int signal, unsigned char c) · line 1251
Quoted 6 lines
drivers/tty/n_tty.c +1
-1@@ -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
No, please move the doc to the function in this case instead.
drivers/tty/n_tty.c static int job_control(struct tty_struct *tty, struct file *file) · line 2045
Quoted 9 lines
drivers/tty/n_tty.c +1
-1* @tty: terminal device * @c: character * @@ -2042,11 +2042,11 @@ static int job_control(struct tty_struct *tty, struct file *file) } -/** +/*
Why this?
drivers/tty/n_tty.c static int job_control(struct tty_struct *tty, struct file *file) · line 2052
Quoted 9 lines
drivers/tty/n_tty.c +1
-1* 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
thanks,
Signature · 2 lines
js suse labs
Quoted 25 lines · Jiri Slaby
Quoted 23 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/tty/n_tty.c:623: warning: expecting prototype forprocess_echoes(). Prototype was for__process_echoes()insteaddrivers/tty/n_tty.c:1109: warning: expecting prototype forisig(). Prototype was for__isig()insteaddrivers/tty/n_tty.c:1268: warning: expecting prototype forn_tty_receive_char(). Prototype was forn_tty_receive_char_special()insteaddrivers/tty/n_tty.c:2132: warning: Excess function parameter 'buf' description in 'n_tty_read'Cc Greg Kroah-Hartman <[email protected]>Cc Jiri Slaby <[email protected]>Cc "Andrew J. Kroll" <[email protected]>Cc processes-Sapan Bhatia <[email protected]>Signed-off-by Lee Jones <[email protected]>---
v2: Rebased
drivers/tty/n_tty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/tty/n_tty.c +0
-0...
Quoted 7 lines
drivers/tty/n_tty.c n_tty_receive_signal_char(struct tty_struct *tty, int signal, unsigned char c) · line 1250
Quoted 5 lines
drivers/tty/n_tty.c +1
-1@@ -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 No, please move the doc to the function in this case instead.
Oh, so this *really* is the doc for n_tty_receive_char()?
Quoted 9 lines
drivers/tty/n_tty.c static int job_control(struct tty_struct *tty, struct file *file) · line 2043
Quoted 7 lines
drivers/tty/n_tty.c +1
-1* @tty: terminal device * @c: character * @@ -2042,11 +2042,11 @@ static int job_control(struct tty_struct *tty, struct file *file) } -/** +/* Why this?
Because the author has missed:
void **cookie, unsigned long offset
Once these descriptions are provided, it can be re-promoted.
Quoted 11 lines
drivers/tty/n_tty.c static int job_control(struct tty_struct *tty, struct file *file)
Quoted 9 lines
drivers/tty/n_tty.c +1
-1* 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 thanks,
Signature · 4 lines
Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog
Jiri Slaby
maintainerQuoted 35 lines · Lee Jones
Quoted 25 lines · Jiri Slaby
Quoted 23 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/tty/n_tty.c:623: warning: expecting prototype forprocess_echoes(). Prototype was for__process_echoes()insteaddrivers/tty/n_tty.c:1109: warning: expecting prototype forisig(). Prototype was for__isig()insteaddrivers/tty/n_tty.c:1268: warning: expecting prototype forn_tty_receive_char(). Prototype was forn_tty_receive_char_special()insteaddrivers/tty/n_tty.c:2132: warning: Excess function parameter 'buf' description in 'n_tty_read'Cc Greg Kroah-Hartman <[email protected]>Cc Jiri Slaby <[email protected]>Cc "Andrew J. Kroll" <[email protected]>Cc processes-Sapan Bhatia <[email protected]>Signed-off-by Lee Jones <[email protected]>---
v2: Rebased
drivers/tty/n_tty.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)drivers/tty/n_tty.c +0
-0...
Quoted 7 lines
drivers/tty/n_tty.c n_tty_receive_signal_char(struct tty_struct *tty, int signal, unsigned char c) · line 1250
Quoted 5 lines
drivers/tty/n_tty.c +1
-1@@ -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 No, please move the doc to the function in this case instead.
Quoted 1 line
Oh, so this *really* is the doc for
n_tty_receive_char()?
Yes, it is supposed to. See 4b1f79c2d7352605b567cab49de20d3b67762ee3, which omitted to move the comment.
Quoted 11 lines
Quoted 10 lines
drivers/tty/n_tty.c static int job_control(struct tty_struct *tty, struct file *file) · line 2043
Quoted 8 lines
drivers/tty/n_tty.c +1
-1* @tty: terminal device * @c: character * @@ -2042,11 +2042,11 @@ static int job_control(struct tty_struct *tty, struct file *file) } -/** +/* Why this?
Quoted 3 lines
Because the author has missed:
void **cookie, unsigned long offset
Oh, that. The doc by far predates the recent cookie introduction.
Quoted 1 line
Once these descriptions are provided, it can be re-promoted.
OK, I will fix this later. I am just putting the pieces together to link all these TTY kernel-docs from Documentation/.
thanks,
Signature · 2 lines
js suse labs