Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: tty_buffer: Fix incorrectly documented function __tty_buffer_request_room()

Fixes the following W=1 kernel build warning(s):

drivers/tty/tty_buffer.c:259: warning: expecting prototype for tty_buffer_request_room(). Prototype was for __tty_buffer_request_room() instead

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210520121906.3468725-6-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
a1c0da88 1d31d0ca

+1 -1
+1 -1
drivers/tty/tty_buffer.c
··· 244 244 } 245 245 246 246 /** 247 - * tty_buffer_request_room - grow tty buffer if needed 247 + * __tty_buffer_request_room - grow tty buffer if needed 248 248 * @port: tty port 249 249 * @size: size desired 250 250 * @flags: buffer flags if new buffer allocated (default = 0)