Skip to content

Commit

Permalink
termios: get rid of non-UAPI asm/termios.h
Browse files Browse the repository at this point in the history
	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 <[email protected]>
Link: https://lore.kernel.org/r/YxDnKvYCHn/ogBUv@ZenIV
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Al Viro authored and gregkh committed Sep 9, 2022
1 parent e7b4c81 commit 89bbeb7
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 85 deletions.
8 changes: 0 additions & 8 deletions arch/alpha/include/asm/termios.h

This file was deleted.

1 change: 1 addition & 0 deletions arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/uaccess.h>
#include <linux/termios.h>
#include <linux/amba/bus.h>
#include <linux/amba/serial.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-versatile/integrator_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/uaccess.h>
#include <linux/termios.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
Expand Down
13 changes: 0 additions & 13 deletions arch/ia64/include/asm/termios.h

This file was deleted.

15 changes: 0 additions & 15 deletions arch/mips/include/asm/termios.h

This file was deleted.

7 changes: 0 additions & 7 deletions arch/parisc/include/asm/termios.h

This file was deleted.

13 changes: 0 additions & 13 deletions arch/powerpc/include/asm/termios.h

This file was deleted.

12 changes: 0 additions & 12 deletions arch/s390/include/asm/termios.h

This file was deleted.

8 changes: 0 additions & 8 deletions arch/sparc/include/asm/termios.h

This file was deleted.

1 change: 1 addition & 0 deletions drivers/net/wwan/wwan_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/uaccess.h>
#include <linux/termios.h>
#include <linux/wwan.h>
#include <net/rtnetlink.h>
Expand Down
9 changes: 0 additions & 9 deletions include/asm-generic/termios.h

This file was deleted.

1 change: 1 addition & 0 deletions include/linux/serdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <linux/types.h>
#include <linux/device.h>
#include <linux/uaccess.h>
#include <linux/termios.h>
#include <linux/delay.h>

Expand Down
1 change: 1 addition & 0 deletions include/linux/tty_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <linux/kref.h>
#include <linux/list.h>
#include <linux/cdev.h>
#include <linux/uaccess.h>
#include <linux/termios.h>
#include <linux/seq_file.h>

Expand Down

0 comments on commit 89bbeb7

Please sign in to comment.