Skip to content

tty globals cleanup (cont'd)

Peter Hurley lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tty: Unexport system-wide tty_mutexdrivers/tty/tty_io.c+1 -30 replies
2/6tty: Eliminate global symbol tty_ldisc_N_TTYdrivers/tty/n_tty.c drivers/tty/tty_io.c drivers/tty/tty_ldisc.c +1 more+10 -130 replies
3/6tty: Remove declarations to non-existent functionsinclude/linux/tty.h+0 -30 replies
4/6tty: Move tty_check_change() helperdrivers/tty/n_tty.c drivers/tty/tty_io.c include/linux/tty.h+6 -70 replies
5/6tty: Remove unreferenced tty flags macro TTY_DEBUGinclude/linux/tty.h+0 -10 replies
6/6tty: Make tty_files_lock per-ttydrivers/tty/tty_io.c include/linux/tty.h security/selinux/hooks.c+15 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] tty globals cleanup (cont'd)

Changes from v2: rebased on top of current tty-next

original message follows:

Hi Greg,

This patch series is part of the ongoing effort to cleanup and reduce the kernel tty interface; specifically removing undefined function declarations, unused macros, encapsulating global data, undefining unused exports, limiting functions and data to file scope, etc.

Regards,

Peter Hurley (6):
tty: Unexport system-wide tty_mutex
tty: Eliminate global symbol tty_ldisc_N_TTY
tty: Remove declarations to non-existent functions
tty: Move tty_check_change() helper
tty: Remove unreferenced tty flags macro TTY_DEBUG
tty: Make tty_files_lock per-tty

 drivers/tty/n_tty.c      | 18 ++++++++----------
 drivers/tty/tty_io.c     | 37 ++++++++++++++++++++-----------------
 drivers/tty/tty_ldisc.c  |  6 ------
 include/linux/tty.h      | 10 ++--------
 security/selinux/hooks.c |  4 ++--
 5 files changed, 32 insertions(+), 43 deletions(-)
Signature · 1 line
2.7.0