The function s32gen1_pcie_config_irq() is used when CONFIG_PCI_S32GEN1_EP_MSI or CONFIG_PCI_DW_DMA enabled, so add check line to fix the build warning.
Signed-off-by: Zhantao Tang <zhantao.t...@windriver.com> --- drivers/pci/controller/dwc/pci-s32gen1.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pci/controller/dwc/pci-s32gen1.c b/drivers/pci/controller/dwc/pci-s32gen1.c index 98d11acba340..2f2712276fca 100644 --- a/drivers/pci/controller/dwc/pci-s32gen1.c +++ b/drivers/pci/controller/dwc/pci-s32gen1.c @@ -754,6 +754,7 @@ static struct dw_pcie_host_ops s32gen1_pcie_host_ops = { #endif }; +#if defined(CONFIG_PCI_S32GEN1_EP_MSI) || defined(CONFIG_PCI_DW_DMA) #define MAX_IRQ_NAME_SIZE 32 static int s32gen1_pcie_config_irq(int *irq_id, char *irq_name, struct platform_device *pdev, @@ -781,6 +782,7 @@ static int s32gen1_pcie_config_irq(int *irq_id, char *irq_name, return 0; } +#endif /* CONFIG_PCI_S32GEN1_EP_MSI || CONFIG_PCI_DW_DMA */ static int s32gen1_add_pcie_port(struct pcie_port *pp, struct platform_device *pdev) -- 2.25.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9753): https://lists.yoctoproject.org/g/linux-yocto/message/9753 Mute This Topic: https://lists.yoctoproject.org/mt/82085856/21656 Group Owner: linux-yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-