summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2020-01-14 20:19:12 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-15 15:39:14 +0300
commit7788f549ed8cfbecd75c10e1a1988812adba49d8 (patch)
treec8cb8bd2aec21bcb106dafed6289638ed0dba829 /include
parent0095ab42056c2b4267b957da96f9517cb0c155ea (diff)
downloadlinux-7788f549ed8cfbecd75c10e1a1988812adba49d8.tar.xz
serial_core: Remove unused member in uart_port
It should remove the align-padding before @name. [yes, there's a "hole" in the structure now, but that's fine, no one cares. If they do care, the whole thing should be restructured using pahole to find a better ordering. Removing this field is good as some drivers have been known to abuse it for other things when they shouldn't have been doing that. -- gregkh] Signed-off-by: Dmitry Safonov <dima@arista.com> Link: https://lore.kernel.org/r/20200114171912.261787-4-dima@arista.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_core.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 255e86a474e9..52404ef1694e 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -246,7 +246,6 @@ struct uart_port {
unsigned char hub6; /* this should be in the 8250 driver */
unsigned char suspended;
- unsigned char unused;
const char *name; /* port name */
struct attribute_group *attr_group; /* port specific attributes */
const struct attribute_group **tty_groups; /* all attributes (serial core use only) */