PCI: Stop exporting pci_bus_sem
diff mbox series

Message ID 20190718032951.40188-1-skunberg.kelsey@gmail.com
State Accepted
Commit 70a658073726ae79cf9747b651f577d1fdf45c3a
Headers show
Series
  • PCI: Stop exporting pci_bus_sem
Related show

Commit Message

Kelsey Skunberg July 18, 2019, 3:29 a.m. UTC
pci_bus_sem is not used by a loadable kernel module and does not need to
be exported. Remove line exporting pci_bus_sem.

Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
---
 drivers/pci/search.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Bjorn Helgaas July 23, 2019, 11:37 p.m. UTC | #1
On Wed, Jul 17, 2019 at 09:29:52PM -0600, Kelsey Skunberg wrote:
> pci_bus_sem is not used by a loadable kernel module and does not need to
> be exported. Remove line exporting pci_bus_sem.
> 
> Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>

Applied to pci/hide for v5.4, thanks!

> ---
>  drivers/pci/search.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/search.c b/drivers/pci/search.c
> index 7f4e65872b8d..bade14002fd8 100644
> --- a/drivers/pci/search.c
> +++ b/drivers/pci/search.c
> @@ -15,7 +15,6 @@
>  #include "pci.h"
>  
>  DECLARE_RWSEM(pci_bus_sem);
> -EXPORT_SYMBOL_GPL(pci_bus_sem);
>  
>  /*
>   * pci_for_each_dma_alias - Iterate over DMA aliases for a device
> -- 
> 2.20.1
> 
> _______________________________________________
> Linux-kernel-mentees mailing list
> Linux-kernel-mentees@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

Patch
diff mbox series

diff --git a/drivers/pci/search.c b/drivers/pci/search.c
index 7f4e65872b8d..bade14002fd8 100644
--- a/drivers/pci/search.c
+++ b/drivers/pci/search.c
@@ -15,7 +15,6 @@ 
 #include "pci.h"
 
 DECLARE_RWSEM(pci_bus_sem);
-EXPORT_SYMBOL_GPL(pci_bus_sem);
 
 /*
  * pci_for_each_dma_alias - Iterate over DMA aliases for a device