]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
PCI: Uninline PCI bus accessors for better ftracing
authorKeith Busch <keith.busch@intel.com>
Tue, 18 Sep 2018 23:58:37 +0000 (17:58 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 4 Oct 2018 21:37:37 +0000 (16:37 -0500)
The PCI bus config accessors could be inlined into other accessor
functions, which makes it so they can't be traced.  Force them to never be
inlined so that ftrace can hook into these functions.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/access.c

index a3ad2fe185b9c517923fc0a26897af0e289dcdd6..544922f097c044a7e434d679ddddf588f72e8467 100644 (file)
@@ -33,7 +33,7 @@ DEFINE_RAW_SPINLOCK(pci_lock);
 #endif
 
 #define PCI_OP_READ(size, type, len) \
-int pci_bus_read_config_##size \
+int noinline pci_bus_read_config_##size \
        (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
 {                                                                      \
        int res;                                                        \
@@ -48,7 +48,7 @@ int pci_bus_read_config_##size \
 }
 
 #define PCI_OP_WRITE(size, type, len) \
-int pci_bus_write_config_##size \
+int noinline pci_bus_write_config_##size \
        (struct pci_bus *bus, unsigned int devfn, int pos, type value)  \
 {                                                                      \
        int res;                                                        \