termios: get rid of non-UAPI asm/termios.h
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 9 Aug 2022 23:41:40 +0000 (19:41 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Sep 2022 08:44:35 +0000 (10:44 +0200)
commit89bbeb7e3199e1514729aa6de8057289e6375fe6
treedb70f4b81e2f5cda861c0047cefca9bf3342209c
parente7b4c812b9685e22753d6355e53fdeaaa22862dd
termios: get rid of non-UAPI asm/termios.h

All non-UAPI asm/termios.h consist of include of UAPI counterpart
and, possibly, include of linux/uaccess.h

The latter can't be simply removed, even though nothing in
linux/termios.h doesn't depend upon it anymore - there are several
places that rely upon that indirect chain of includes to pull
linux/uaccess.h.  So the include needs to be lifted out of there -
we lift into tty_driver.h, serdev.h and places that pull asm/termios.h,
but none of
* linux/uaccess.h (obvious)
* net/sock.h (pulls uaccess.h)
* linux/{tty,tty_driver,serdev}.h (tty.h pulls tty_driver.h)

That leaves us just with the include of UAPI asm/termios.h, which is
what <asm/termios.h> will resolve to if we simply remove non-UAPI header.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Link: https://lore.kernel.org/r/YxDnKvYCHn/ogBUv@ZenIV
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
13 files changed:
arch/alpha/include/asm/termios.h [deleted file]
arch/arm/mach-ep93xx/core.c
arch/arm/mach-versatile/integrator_ap.c
arch/ia64/include/asm/termios.h [deleted file]
arch/mips/include/asm/termios.h [deleted file]
arch/parisc/include/asm/termios.h [deleted file]
arch/powerpc/include/asm/termios.h [deleted file]
arch/s390/include/asm/termios.h [deleted file]
arch/sparc/include/asm/termios.h [deleted file]
drivers/net/wwan/wwan_core.c
include/asm-generic/termios.h [deleted file]
include/linux/serdev.h
include/linux/tty_driver.h