]> Git Repo - linux.git/commitdiff
tty: n_hdlc: Fix a little doc-rot in n_hdlc_tty_read()
authorLee Jones <[email protected]>
Thu, 20 May 2021 12:19:03 +0000 (13:19 +0100)
committerGreg Kroah-Hartman <[email protected]>
Thu, 20 May 2021 15:06:17 +0000 (17:06 +0200)
Fixes 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'

Cc: Greg Kroah-Hartman <[email protected]>
Cc: Jiri Slaby <[email protected]>
Cc: Paul Fulghum <[email protected]>
Cc: Michael Callahan <[email protected]>
Cc: Al Longyear <[email protected]>
Cc: Paul Mackerras <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/n_hdlc.c

index d899ee4e0116f6831af2fc09ca2be2dbce528de6..580a37b3fe1b9bc7d3dfce0d656e49aec5e58d29 100644 (file)
@@ -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.
  */
This page took 0.058435 seconds and 4 git commands to generate.