Skip to content

Commit 4753408

Browse files
peterhurleygregkh
authored andcommitted
tty: Deprecate ldisc .chars_in_buffer() method
Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a19d0c6 commit 4753408

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/n_tty.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ static ssize_t chars_in_buffer(struct tty_struct *tty)
297297

298298
static ssize_t n_tty_chars_in_buffer(struct tty_struct *tty)
299299
{
300+
WARN_ONCE(1, "%s is deprecated and scheduled for removal.", __func__);
300301
return chars_in_buffer(tty);
301302
}
302303

0 commit comments

Comments
 (0)