]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: hotplug: Inline pci_hp_{create,remove}_module_link()
authorLukas Wunner <lukas@wunner.de>
Tue, 25 Feb 2025 17:06:05 +0000 (18:06 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Mar 2025 23:00:12 +0000 (17:00 -0600)
commitcc973ef13f8e31608d34c349c6ed85d44d716523
tree2dc292d33679cb2137897588c0df52815ba9c759
parent34bd6141a62d21853b61e759f5c617059b2f3655
PCI: hotplug: Inline pci_hp_{create,remove}_module_link()

For no apparent reason, the pci_hp_{create,remove}_module_link() helpers
live in slot.c, even though they're only called from two functions in
pci_hotplug_core.c.

Inline the helpers to reduce code size and number of exported symbols.

Link: https://lore.kernel.org/r/c207f03cfe32ae9002d9b453001a1dd63d9ab3fb.1740501868.git.lukas@wunner.de
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pci_hotplug_core.c
drivers/pci/slot.c
include/linux/pci.h