Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Uninline PCI bus accessors for better ftracing

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>

authored by

Keith Busch and committed by
Bjorn Helgaas
5180fd91 62b36c3e

+2 -2
+2 -2
drivers/pci/access.c
··· 33 33 #endif 34 34 35 35 #define PCI_OP_READ(size, type, len) \ 36 - int pci_bus_read_config_##size \ 36 + int noinline pci_bus_read_config_##size \ 37 37 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \ 38 38 { \ 39 39 int res; \ ··· 48 48 } 49 49 50 50 #define PCI_OP_WRITE(size, type, len) \ 51 - int pci_bus_write_config_##size \ 51 + int noinline pci_bus_write_config_##size \ 52 52 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \ 53 53 { \ 54 54 int res; \