Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751907AbbHQXcp (ORCPT ); Mon, 17 Aug 2015 19:32:45 -0400 Received: from mga11.intel.com ([192.55.52.93]:47840 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbbHQXcn (ORCPT ); Mon, 17 Aug 2015 19:32:43 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,698,1432623600"; d="scan'208";a="750460212" From: "Jiang, Dave" To: "Busch, Keith" , "bhelgaas@google.com" CC: "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" Subject: Re: [PATCH 3/3] PCIE: Remove symbol export for pcie_set_mps() Thread-Topic: [PATCH 3/3] PCIE: Remove symbol export for pcie_set_mps() Thread-Index: AQHQykyxkf45afaif0KdkACublpufJ4RWbMAgAAREYA= Date: Mon, 17 Aug 2015 23:32:41 +0000 Message-ID: <1439854361.3253.23.camel@intel.com> References: <1438208335-19457-1-git-send-email-keith.busch@intel.com> <1438208335-19457-4-git-send-email-keith.busch@intel.com> <20150817223136.GL26431@google.com> In-Reply-To: <20150817223136.GL26431@google.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [143.182.51.113] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id t7HNWnFO013175 Content-Length: 1219 Lines: 33 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 > > > > 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 > > --- > > 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.????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?