* [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable
@ 2023-07-10 23:21 Bjorn Helgaas
2023-07-10 23:21 ` [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting() Bjorn Helgaas
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Bjorn Helgaas @ 2023-07-10 23:21 UTC (permalink / raw)
To: linux-pci
Cc: Bjorn Helgaas, linuxppc-dev, Oliver O'Halloran,
Mahesh J Salgaonkar, linux-kernel
From: Bjorn Helgaas <bhelgaas@google.com>
pci_disable_pcie_error_reporting() is unused; remove it.
pci_enable_pcie_error_reporting() is used only inside aer.c; make it
static.
Bjorn Helgaas (2):
PCI/AER: Drop unused pci_disable_pcie_error_reporting()
PCI/AER: Unexport pci_enable_pcie_error_reporting()
drivers/pci/pcie/aer.c | 15 +--------------
include/linux/aer.h | 11 -----------
2 files changed, 1 insertion(+), 25 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting()
2023-07-10 23:21 [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Bjorn Helgaas
@ 2023-07-10 23:21 ` Bjorn Helgaas
2023-07-11 5:11 ` Christoph Hellwig
2023-07-10 23:21 ` [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting() Bjorn Helgaas
` (2 subsequent siblings)
3 siblings, 1 reply; 7+ messages in thread
From: Bjorn Helgaas @ 2023-07-10 23:21 UTC (permalink / raw)
To: linux-pci
Cc: Bjorn Helgaas, linuxppc-dev, Oliver O'Halloran,
Mahesh J Salgaonkar, linux-kernel
From: Bjorn Helgaas <bhelgaas@google.com>
pci_disable_pcie_error_reporting() has no callers. Remove it.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
drivers/pci/pcie/aer.c | 12 ------------
include/linux/aer.h | 5 -----
2 files changed, 17 deletions(-)
diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index f6c24ded134c..d4c948b7c449 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -242,18 +242,6 @@ int pci_enable_pcie_error_reporting(struct pci_dev *dev)
}
EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting);
-int pci_disable_pcie_error_reporting(struct pci_dev *dev)
-{
- int rc;
-
- if (!pcie_aer_is_native(dev))
- return -EIO;
-
- rc = pcie_capability_clear_word(dev, PCI_EXP_DEVCTL, PCI_EXP_AER_FLAGS);
- return pcibios_err_to_errno(rc);
-}
-EXPORT_SYMBOL_GPL(pci_disable_pcie_error_reporting);
-
int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
{
int aer = dev->aer_cap;
diff --git a/include/linux/aer.h b/include/linux/aer.h
index 3a3ab05e13fd..aadc9242cb20 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -43,17 +43,12 @@ struct aer_capability_regs {
#if defined(CONFIG_PCIEAER)
/* PCIe port driver needs this function to enable AER */
int pci_enable_pcie_error_reporting(struct pci_dev *dev);
-int pci_disable_pcie_error_reporting(struct pci_dev *dev);
int pci_aer_clear_nonfatal_status(struct pci_dev *dev);
#else
static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
{
return -EINVAL;
}
-static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev)
-{
- return -EINVAL;
-}
static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
{
return -EINVAL;
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting()
2023-07-10 23:21 [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Bjorn Helgaas
2023-07-10 23:21 ` [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting() Bjorn Helgaas
@ 2023-07-10 23:21 ` Bjorn Helgaas
2023-07-11 5:11 ` Christoph Hellwig
2023-07-11 1:18 ` [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Sathyanarayanan Kuppuswamy
2023-07-13 16:18 ` Bjorn Helgaas
3 siblings, 1 reply; 7+ messages in thread
From: Bjorn Helgaas @ 2023-07-10 23:21 UTC (permalink / raw)
To: linux-pci
Cc: Bjorn Helgaas, linuxppc-dev, Oliver O'Halloran,
Mahesh J Salgaonkar, linux-kernel
From: Bjorn Helgaas <bhelgaas@google.com>
pci_enable_pcie_error_reporting() is used only inside aer.c. Stop exposing
it outside the file.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
drivers/pci/pcie/aer.c | 3 +--
include/linux/aer.h | 6 ------
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c
index d4c948b7c449..645149608054 100644
--- a/drivers/pci/pcie/aer.c
+++ b/drivers/pci/pcie/aer.c
@@ -230,7 +230,7 @@ int pcie_aer_is_native(struct pci_dev *dev)
return pcie_ports_native || host->native_aer;
}
-int pci_enable_pcie_error_reporting(struct pci_dev *dev)
+static int pci_enable_pcie_error_reporting(struct pci_dev *dev)
{
int rc;
@@ -240,7 +240,6 @@ int pci_enable_pcie_error_reporting(struct pci_dev *dev)
rc = pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_AER_FLAGS);
return pcibios_err_to_errno(rc);
}
-EXPORT_SYMBOL_GPL(pci_enable_pcie_error_reporting);
int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
{
diff --git a/include/linux/aer.h b/include/linux/aer.h
index aadc9242cb20..2dd175f5debd 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -41,14 +41,8 @@ struct aer_capability_regs {
};
#if defined(CONFIG_PCIEAER)
-/* PCIe port driver needs this function to enable AER */
-int pci_enable_pcie_error_reporting(struct pci_dev *dev);
int pci_aer_clear_nonfatal_status(struct pci_dev *dev);
#else
-static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
-{
- return -EINVAL;
-}
static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
{
return -EINVAL;
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable
2023-07-10 23:21 [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Bjorn Helgaas
2023-07-10 23:21 ` [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting() Bjorn Helgaas
2023-07-10 23:21 ` [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting() Bjorn Helgaas
@ 2023-07-11 1:18 ` Sathyanarayanan Kuppuswamy
2023-07-13 16:18 ` Bjorn Helgaas
3 siblings, 0 replies; 7+ messages in thread
From: Sathyanarayanan Kuppuswamy @ 2023-07-11 1:18 UTC (permalink / raw)
To: Bjorn Helgaas, linux-pci
Cc: Bjorn Helgaas, linuxppc-dev, Oliver O'Halloran,
Mahesh J Salgaonkar, linux-kernel
On 7/10/23 4:21 PM, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> pci_disable_pcie_error_reporting() is unused; remove it.
> pci_enable_pcie_error_reporting() is used only inside aer.c; make it
> static.
Looks fine to me.
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
>
> Bjorn Helgaas (2):
> PCI/AER: Drop unused pci_disable_pcie_error_reporting()
> PCI/AER: Unexport pci_enable_pcie_error_reporting()
>
> drivers/pci/pcie/aer.c | 15 +--------------
> include/linux/aer.h | 11 -----------
> 2 files changed, 1 insertion(+), 25 deletions(-)
>
--
Sathyanarayanan Kuppuswamy
Linux Kernel Developer
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting()
2023-07-10 23:21 ` [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting() Bjorn Helgaas
@ 2023-07-11 5:11 ` Christoph Hellwig
0 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2023-07-11 5:11 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: linux-pci, Mahesh J Salgaonkar, linux-kernel,
Oliver O'Halloran, Bjorn Helgaas, linuxppc-dev
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting()
2023-07-10 23:21 ` [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting() Bjorn Helgaas
@ 2023-07-11 5:11 ` Christoph Hellwig
0 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2023-07-11 5:11 UTC (permalink / raw)
To: Bjorn Helgaas
Cc: linux-pci, Mahesh J Salgaonkar, linux-kernel,
Oliver O'Halloran, Bjorn Helgaas, linuxppc-dev
Looks good:
Reviewed-by: Christoph Hellwig <hch@lst.de>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable
2023-07-10 23:21 [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Bjorn Helgaas
` (2 preceding siblings ...)
2023-07-11 1:18 ` [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Sathyanarayanan Kuppuswamy
@ 2023-07-13 16:18 ` Bjorn Helgaas
3 siblings, 0 replies; 7+ messages in thread
From: Bjorn Helgaas @ 2023-07-13 16:18 UTC (permalink / raw)
To: linux-pci
Cc: Kuppuswamy Sathyanarayanan, Mahesh J Salgaonkar, linux-kernel,
Oliver O'Halloran, Bjorn Helgaas, linuxppc-dev,
Christoph Hellwig
On Mon, Jul 10, 2023 at 06:21:34PM -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> pci_disable_pcie_error_reporting() is unused; remove it.
> pci_enable_pcie_error_reporting() is used only inside aer.c; make it
> static.
>
> Bjorn Helgaas (2):
> PCI/AER: Drop unused pci_disable_pcie_error_reporting()
> PCI/AER: Unexport pci_enable_pcie_error_reporting()
>
> drivers/pci/pcie/aer.c | 15 +--------------
> include/linux/aer.h | 11 -----------
> 2 files changed, 1 insertion(+), 25 deletions(-)
Applied to pci/aer for v6.6, thanks Christoph and Sathy!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-13 16:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-10 23:21 [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Bjorn Helgaas
2023-07-10 23:21 ` [PATCH 1/2] PCI/AER: Drop unused pci_disable_pcie_error_reporting() Bjorn Helgaas
2023-07-11 5:11 ` Christoph Hellwig
2023-07-10 23:21 ` [PATCH 2/2] PCI/AER: Unexport pci_enable_pcie_error_reporting() Bjorn Helgaas
2023-07-11 5:11 ` Christoph Hellwig
2023-07-11 1:18 ` [PATCH 0/2] PCI/AER: Remove/unexport error reporting enable/disable Sathyanarayanan Kuppuswamy
2023-07-13 16:18 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).