[PATCH 07/11] tty: pty: Fix incorrectly named function pty_resize()

From: Lee Jones
Date: Thu May 20 2021 - 08:54:53 EST


Fixes 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

Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Jiri Slaby <jirislaby@xxxxxxxxxx>
Cc: "C. Scott Ananian" <cananian@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/tty/pty.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index 5ada7e9381eb8..a0898925d2e7a 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -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.
*
--
2.31.1