diff options
author | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2023-03-09 09:20:33 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-17 15:01:09 +0100 |
commit | 8ed012d1be12c183e173c9e0933b34a7073a9c8a (patch) | |
tree | 80429f432981a848886b997d913ccd14622c4cf0 /drivers/tty/n_tty.c | |
parent | n_tty: Use DIV_ROUND_UP() in room calculation (diff) | |
download | linux-8ed012d1be12c183e173c9e0933b34a7073a9c8a.tar.xz linux-8ed012d1be12c183e173c9e0933b34a7073a9c8a.zip |
n_tty: Cleanup includes
n_tty uses:
- bitmap_zero() from linux/bitmap.h
- EXPORT_SYMBOL_GPL() from linux/export.h
- jiffies, time_after() from linux/jiffies.h
Add includes.
n_tty uses nothing from:
- linux/audit.h
- linux/interrupt.h
- linux/major.h
- linux/mm.h
- linux/module.h
- linux/timer.h
Remove those includes.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230309082035.14880-7-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 6d754fc35dce..0481e57077f1 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -28,24 +28,21 @@ * EAGAIN */ -#include <linux/audit.h> +#include <linux/bitmap.h> #include <linux/bitops.h> #include <linux/ctype.h> #include <linux/errno.h> +#include <linux/export.h> #include <linux/fcntl.h> #include <linux/file.h> -#include <linux/interrupt.h> -#include <linux/major.h> +#include <linux/jiffies.h> #include <linux/math.h> -#include <linux/mm.h> -#include <linux/module.h> #include <linux/poll.h> #include <linux/ratelimit.h> #include <linux/sched.h> #include <linux/signal.h> #include <linux/slab.h> #include <linux/string.h> -#include <linux/timer.h> #include <linux/tty.h> #include <linux/types.h> #include <linux/uaccess.h> |