serial: 8250: Reorder fields in 'struct plat_serial8250_port'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 17 Feb 2023 20:22:57 +0000 (21:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:17:10 +0000 (17:17 +0100)
commit85bce38a7e1f392f5051e67fd5fcfbffe71e9b81
treeb35126c7199a8c01c00fc9fc730dbb453cd3f6c1
parentc47527cbcc3c50800f34b8c684f29721f75de246
serial: 8250: Reorder fields in 'struct plat_serial8250_port'

Group some variables based on their sizes to reduce hole and avoid padding.
On x86_64, this shrinks the size of 'struct plat_serial8250_port'
from 144 to 128 bytes.

It saves a few bytes of memory.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f3cb1efe1454e0615840fd331ee335bc441589a9.1676665358.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_8250.h