mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] tty: pty: correct function name pty_resize()
@ 2021-05-18  4:53 Yang Yingliang
  2021-05-18  4:55 ` Jiri Slaby
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-05-18  4:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: jirislaby, gregkh

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@huawei.com>
---
 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.
  *
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] tty: pty: correct function name pty_resize()
  2021-05-18  4:53 [PATCH -next] tty: pty: correct function name pty_resize() Yang Yingliang
@ 2021-05-18  4:55 ` Jiri Slaby
  0 siblings, 0 replies; 2+ messages in thread
From: Jiri Slaby @ 2021-05-18  4:55 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel; +Cc: gregkh

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@huawei.com>

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

> ---
>   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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-18  4:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18  4:53 [PATCH -next] tty: pty: correct function name pty_resize() Yang Yingliang
2021-05-18  4:55 ` Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®