Skip to content

termios: remove arch redundancy in <asm/termbits.h>

H. Peter Anvin (Intel) linux-arch linux-ia64 linux-mips linux-parisc linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5asm-generic, termios: add alias constants from MIPSinclude/uapi/asm-generic/termbits.h+6 -11 reply
2/5arch/ia64, termios: use <asm-generic/termbits.h>arch/ia64/include/uapi/asm/termbits.h+1 -2090 replies
3/5arch/mips, termios: use <asm-generic/termbits.h>arch/mips/include/uapi/asm/ioctls.h arch/mips/include/uapi/asm/termbits.h+15 -2000 replies
4/5arch/parisc, termios: use <asm-generic/termios.h>arch/parisc/include/uapi/asm/termbits.h+4 -1930 replies
5/5arch/xtensa, termios: use <asm-generic/termbits.h>arch/xtensa/include/uapi/asm/termbits.h+1 -2212 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] termios: remove arch redundancy in <asm/termbits.h>

<asm/termbits.h> is one of those files which define an ABI. Some were made different due to the desire to be compatible with legacy architectures, others were mostly direct copies of the i386 definitions, which are now in asm-generic.

This folds the IA64, MIPS, PA-RISC, and Xtensa implementations into the generic one. IA64 and Xtensa are identical, MIPS and PA-RISC are trivially different and just need a handful of constants redefined.

<asm-generic/termbits.h> has a few very minor adjustments to allow this.

 arch/ia64/include/uapi/asm/termbits.h   | 210 +-----------------------------
 arch/mips/include/uapi/asm/ioctls.h     |   2 +
 arch/mips/include/uapi/asm/termbits.h   | 213 ++----------------------------
 arch/parisc/include/uapi/asm/termbits.h | 197 +---------------------------
 arch/xtensa/include/uapi/asm/termbits.h | 222 +-------------------------------
 include/uapi/asm-generic/termbits.h     |   7 +-
 6 files changed, 27 insertions(+), 824 deletions(-)
Cc "James E.J. Bottomley" <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Chris Zankel <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Helge Deller <[email protected]>
Cc James Hogan <[email protected]>
Cc Jiri Slaby <[email protected]>
Cc Kate Stewart <[email protected]>
Cc Max Filippov <[email protected]>
Cc Paul Burton <[email protected]>
Cc Philippe Ombredanne <[email protected]>
Cc Ralf Baechle <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tony Luck <[email protected]>