Re: [Linux-kernel-mentees] [PATCH] PCI: Remove unused EXPORT_SYMBOL()s from drivers/pci/bus.c

Greg KH
2019-07-17T20:48:57Z

On Wed, Jul 17, 2019 at 12:23:53PM -0600, Kelsey Skunberg wrote:
> pci_bus_get() and pci_bus_put() are not used by a loadable kernel module
> and do not need to be exported. Remove lines exporting pci_bus_get() and
> pci_bus_put().
>
> Functions were exported in commit fe830ef62ac6 ("PCI: Introduce
> pci_bus_{get|put}() to manage PCI bus reference count"). No found history
> of functions being used by a loadable kernel module.
>
> Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>