Re: [PATCH -next] tty: pty: correct function name pty_resize()

From: Jiri Slaby
Date: Tue May 18 2021 - 00:55:24 EST


On 18. 05. 21, 6:53, Yang Yingliang wrote:
Fix the following make W=1 kernel build warning:

drivers/tty/pty.c:307: warning: expecting prototype for pty_do_resize(). Prototype was for pty_resize() instead

Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Reviewed-by: Jiri Slaby <jirislaby@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 9b5d4ae5d8f2..416471195e5a 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -295,7 +295,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.
*


thanks,
--
js
suse labs