[PATCH 1/1] serial: core: align struct back to 4 bytes boundary

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The commit 3f960dbb9dfe ("Serial: Avoid unbalanced IRQ wake disable during
resume") adds a new unsigned char field to the struct uart_port. At the same
time we have to reduce amount of bytes in unused array, which wasn't done.
Hence the change hits an alignment of the struct and breaks 4 bytes boundary.

Do remove one unused byte in the struct uart_port.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
---
 include/linux/serial_core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index e9811c4..38f6f81 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -248,7 +248,7 @@ struct uart_port {
 	unsigned char		hub6;			/* this should be in the 8250 driver */
 	unsigned char		suspended;
 	unsigned char		irq_wake;
-	unsigned char		unused[2];
+	unsigned char		unused2;
 	struct attribute_group	*attr_group;		/* port specific attributes */
 	const struct attribute_group **tty_groups;	/* all attributes (serial core use only) */
 	struct serial_rs485     rs485;
-- 
2.8.1

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux