The s32gen1_pcie_msi_handler() is referenced by s32gen1_pcie_config_irq()
when CONFIG_PCI_S32GEN1_EP_MSI kernel config is enabled, but currentlly,
this config is disabled, so add if-conditions to fix the following warning:

        warning: 's32gen1_pcie_msi_handler' defined but not used 
[-Wunused-function]
        702 | static irqreturn_t s32gen1_pcie_msi_handler(int irq, void *arg)

Signed-off-by: Zhantao Tang <[email protected]>
---
 drivers/pci/controller/dwc/pci-s32gen1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/controller/dwc/pci-s32gen1.c 
b/drivers/pci/controller/dwc/pci-s32gen1.c
index 2f2712276fca..11d59f50f860 100644
--- a/drivers/pci/controller/dwc/pci-s32gen1.c
+++ b/drivers/pci/controller/dwc/pci-s32gen1.c
@@ -694,7 +694,7 @@ static void s32gen1_pcie_stop_link(struct dw_pcie *pcie)
        s32gen1_pcie_disable_ltssm(s32_pp);
 }
 
-#ifdef CONFIG_PCI_MSI
+#ifdef CONFIG_PCI_S32GEN1_EP_MSI
 /* msi IRQ handler
  * irq - interrupt number
  * arg - pointer to the "struct pcie_port" object
@@ -711,7 +711,7 @@ static irqreturn_t s32gen1_pcie_msi_handler(int irq, void 
*arg)
 
        return dw_handle_msi_irq(pp);
 }
-#endif
+#endif /* CONFIG_PCI_S32GEN1_EP_MSI */
 
 static int s32gen1_pcie_host_init(struct pcie_port *pp)
 {
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9828): 
https://lists.yoctoproject.org/g/linux-yocto/message/9828
Mute This Topic: https://lists.yoctoproject.org/mt/82427147/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to