diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-07-23 12:31:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-27 12:12:07 +0200 |
commit | 890ebae627708cd530592b524efd5d26d9fdb2ec (patch) | |
tree | b353349dcbf6f81702cb9cdd66883f85bbc941eb | |
parent | 4d3d947866c2da405a6257158e42077fa3c95755 (diff) | |
download | lwn-890ebae627708cd530592b524efd5d26d9fdb2ec.tar.gz lwn-890ebae627708cd530592b524efd5d26d9fdb2ec.zip |
tty: include kref.h in tty_driver.h
We use kref in tty_driver.h, but do not include kref.h. It is currently
included by linux/cdev.h -> linux/kobject.h -> linux/kref.h chain, so
everything is in order only implicitly. So make this dependency
explicit.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210723103147.18250-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | include/linux/tty_driver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index e15f8635aa36..a798e7f8890a 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -233,6 +233,7 @@ #include <linux/export.h> #include <linux/fs.h> +#include <linux/kref.h> #include <linux/list.h> #include <linux/cdev.h> #include <linux/termios.h> |