linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] tty: eliminate 64 byte stack buffers passed to tty_name
@ 2015-03-31 13:55 Rasmus Villemoes
  2015-03-31 13:55 ` [PATCH 1/3] tty: constify return type of tty_name Rasmus Villemoes
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Rasmus Villemoes @ 2015-03-31 13:55 UTC (permalink / raw)
  To: Dmitry Torokhov, Greg Kroah-Hartman, Jiri Slaby, Mikael Starvik,
	Jesper Nilsson
  Cc: Rasmus Villemoes, linux-input, linux-kernel, linux-cris-kernel,
	linux-serial

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-04-07  8:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31 13:55 [PATCH 0/3] tty: eliminate 64 byte stack buffers passed to tty_name Rasmus Villemoes
2015-03-31 13:55 ` [PATCH 1/3] tty: constify return type of tty_name Rasmus Villemoes
2015-03-31 13:55 ` [PATCH 2/3] tty: return tty->name directly from tty_name Rasmus Villemoes
2015-03-31 13:55 ` [PATCH 3/3] tty: remove buf parameter from tty_name() Rasmus Villemoes
2015-03-31 21:40   ` Dmitry Torokhov
2015-04-07  8:57   ` Jesper Nilsson
2015-04-04  0:20 ` [PATCH 0/3] tty: eliminate 64 byte stack buffers passed to tty_name Peter Hurley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).