lkml.org 
[lkml]   [2015]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] tty: eliminate 64 byte stack buffers passed to tty_name
Date
All users of tty_name pass the return value directly to a printf
function, so we might as well use tty->name directly instead of
copying it to a user-supplied (stack) buffer.

allmodconfig compile-tested only.

Rasmus Villemoes (3):
tty: constify return type of tty_name
tty: return tty->name directly from tty_name
tty: remove buf parameter from tty_name()

drivers/input/serio/serport.c | 5 ++---
drivers/tty/amiserial.c | 8 ++------
drivers/tty/cyclades.c | 8 ++------
drivers/tty/n_gsm.c | 3 +--
drivers/tty/n_tty.c | 7 ++-----
drivers/tty/serial/crisv10.c | 8 ++------
drivers/tty/serial/serial_core.c | 4 +---
drivers/tty/tty_io.c | 34 +++++++++++++---------------------
drivers/tty/tty_ioctl.c | 4 +---
drivers/tty/tty_ldisc.c | 8 +++-----
include/linux/tty.h | 2 +-
11 files changed, 30 insertions(+), 61 deletions(-)

--
2.1.3



\
 
 \ /
  Last update: 2015-03-31 16:41    [W:0.115 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site