PCI: Reorder pci_dev fields to reduce holes
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 18 Jun 2023 16:24:54 +0000 (18:24 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Jul 2023 16:21:25 +0000 (11:21 -0500)
commit849846c41497e481c964b69ab1c65d65958aac28
tree588c4bbc9a98a69ff88a45b8d3454f182698ec4b
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
PCI: Reorder pci_dev fields to reduce holes

Group some bitfield variables to reduce holes.  On x86_64, this shrinks the
size of 'struct pci_dev' by 16 bytes (from 3576 to 3560) when compiled with
'allmodconfig'.

Link: https://lore.kernel.org/r/407b17c3e56764ef2c558898d4ff4c6c04b2d757.1687105455.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci.h