diff mbox

[3/3] PCIE: Remove symbol export for pcie_set_mps()

Message ID 1438208335-19457-4-git-send-email-keith.busch@intel.com (mailing list archive)
State New, archived
Delegated to: Bjorn Helgaas
Headers show

Commit Message

Keith Busch July 29, 2015, 10:18 p.m. UTC
From: Dave Jiang <dave.jiang@intel.com>

The setting of PCIe MPS should be left to the PCI subsystem and not
the driver. An ill configured MPS by the driver could cause the device
to not function or unstablize the entire system. Removing the exported
symbol.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 drivers/pci/pci.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Bjorn Helgaas Aug. 17, 2015, 10:31 p.m. UTC | #1
On Wed, Jul 29, 2015 at 04:18:55PM -0600, Keith Busch wrote:
> From: Dave Jiang <dave.jiang@intel.com>
> 
> The setting of PCIe MPS should be left to the PCI subsystem and not
> the driver. An ill configured MPS by the driver could cause the device
> to not function or unstablize the entire system. Removing the exported
> symbol.
> 
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
>  drivers/pci/pci.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
> index 0008c95..92349ee 100644
> --- a/drivers/pci/pci.c
> +++ b/drivers/pci/pci.c
> @@ -4121,7 +4121,6 @@ int pcie_set_mps(struct pci_dev *dev, int mps)
>  	return pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL,
>  						  PCI_EXP_DEVCTL_PAYLOAD, v);
>  }
> -EXPORT_SYMBOL(pcie_set_mps);

I think the pcie_set_mps() declaration could be moved from
include/linux/pci.h to drivers/pci/pci.h, couldn't it?
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Dave Jiang Aug. 17, 2015, 11:32 p.m. UTC | #2
On Mon, 2015-08-17 at 17:31 -0500, Bjorn Helgaas wrote:
> On Wed, Jul 29, 2015 at 04:18:55PM -0600, Keith Busch wrote:

> > From: Dave Jiang <dave.jiang@intel.com>

> > 

> > The setting of PCIe MPS should be left to the PCI subsystem and not

> > the driver. An ill configured MPS by the driver could cause the 

> > device

> > to not function or unstablize the entire system. Removing the 

> > exported

> > symbol.

> > 

> > Signed-off-by: Dave Jiang <dave.jiang@intel.com>

> > ---

> >  drivers/pci/pci.c |    1 -

> >  1 file changed, 1 deletion(-)

> > 

> > diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c

> > index 0008c95..92349ee 100644

> > --- a/drivers/pci/pci.c

> > +++ b/drivers/pci/pci.c

> > @@ -4121,7 +4121,6 @@ int pcie_set_mps(struct pci_dev *dev, int 

> > mps)

> >  	return pcie_capability_clear_and_set_word(dev, 

> > PCI_EXP_DEVCTL,

> >  						 

> >  PCI_EXP_DEVCTL_PAYLOAD, v);

> >  }

> > -EXPORT_SYMBOL(pcie_set_mps);

> 

> I think the pcie_set_mps() declaration could be moved from

> include/linux/pci.h to drivers/pci/pci.h, couldn't it?


Ok.
diff mbox

Patch

diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 0008c95..92349ee 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4121,7 +4121,6 @@  int pcie_set_mps(struct pci_dev *dev, int mps)
 	return pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL,
 						  PCI_EXP_DEVCTL_PAYLOAD, v);
 }
-EXPORT_SYMBOL(pcie_set_mps);
 
 /**
  * pcie_get_minimum_link - determine minimum link settings of a PCI device