Closed ktpawlak closed 11 months ago
when s32cc_defconfig is modified to add CONFIG_PCI_S32CC_EP_MSI, it results in compilation failure:
drivers/pci/controller/dwc/pci-s32cc.c: In function ‘s32cc_pcie_config_common’: drivers/pci/controller/dwc/pci-s32cc.c:1742:25: error: redefinition of ‘pcie’ 1742 | struct dw_pcie *pcie = &s32cc_pp->pcie; | ^~~~ drivers/pci/controller/dwc/pci-s32cc.c:1735:25: note: previous definition of ‘pcie’ with type ‘struct dw_pcie *’ 1735 | struct dw_pcie *pcie = &s32cc_pp->pcie; | ^~~~ drivers/pci/controller/dwc/pci-s32cc.c:1742:9: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 1742 | struct dw_pcie *pcie = &s32cc_pp->pcie; | ^~~~~~ drivers/pci/controller/dwc/pci-s32cc.c:1744:27: error: redefinition of ‘pp’ 1744 | struct pcie_port *pp = &pcie->pp; | ^~ drivers/pci/controller/dwc/pci-s32cc.c:1736:27: note: previous definition of ‘pp’ with type ‘struct pcie_port *’ 1736 | struct pcie_port *pp = &pcie->pp; | ^~ drivers/pci/controller/dwc/pci-s32cc.c:1786:33: error: ‘struct pcie_port’ has no member named ‘irq_status’ 1786 | pcie->pp.irq_status[ctrl] = 0; | ^
Fixed in https://github.com/nxp-auto-linux/linux/commit/746f1e948964ddd9fa2c7154e408177a39bd29a6
when s32cc_defconfig is modified to add CONFIG_PCI_S32CC_EP_MSI, it results in compilation failure: