Skip to contentSkip to conversation

tty: pty: correct function name pty_resize()

PATCH In review Yang Yingliang 2 participants 2 messages May 18, 2021 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tty: pty: correct function name pty_resize()

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

---
 drivers/tty/pty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/pty.c +1 -1
index 9b5d4ae5d8f2..416471195e5a 100644
@@ -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.
  *
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Yang Yingliang

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

Quoted 10 lines
---
  drivers/tty/pty.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/pty.c +0 -0
index 9b5d4ae5d8f2..416471195e5a 100644

drivers/tty/pty.c static void pty_set_termios(struct tty_struct *tty, · line 301

Quoted 8 lines
drivers/tty/pty.c +1 -1
@@ -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,

Signature · 2 lines
js
suse labs