From: Peter Hurley Date: Sat, 15 Jun 2013 13:14:19 +0000 (-0400) Subject: tty: Deprecate ldisc .chars_in_buffer() method X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=475340846f4c9c307f2de03cb4fcc486e267e974;p=linux-beck.git tty: Deprecate ldisc .chars_in_buffer() method Signed-off-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 594a3c19882b..290769c67a8d 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -297,6 +297,7 @@ static ssize_t chars_in_buffer(struct tty_struct *tty) static ssize_t n_tty_chars_in_buffer(struct tty_struct *tty) { + WARN_ONCE(1, "%s is deprecated and scheduled for removal.", __func__); return chars_in_buffer(tty); }