* [linux-arm:cex7 16/34] drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c:67:16: error: redeclaration of 'ctl_block' with no linkage
@ 2020-01-04 4:33 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-01-04 4:33 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2813 bytes --]
tree: git://git.armlinux.org.uk/~rmk/linux-arm cex7
head: 990932281795167358988202ba9a415442c84ea6
commit: ba9ec2ba6fcc89ae22f9de3571cd7311d3689afe [16/34] net: of_get_phy_mode: Change API to solve int/unit warnings
config: c6x-allyesconfig (attached as .config)
compiler: c6x-elf-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ba9ec2ba6fcc89ae22f9de3571cd7311d3689afe
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c: In function 'anarion_config_dt':
>> drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c:67:16: error: redeclaration of 'ctl_block' with no linkage
void __iomem *ctl_block;
^~~~~~~~~
drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c:64:16: note: previous declaration of 'ctl_block' was here
void __iomem *ctl_block;
^~~~~~~~~
vim +/ctl_block +67 drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c
61
62 static struct anarion_gmac *anarion_config_dt(struct platform_device *pdev)
63 {
64 void __iomem *ctl_block;
65 struct anarion_gmac *gmac;
66 phy_interface_t phy_mode;
> 67 void __iomem *ctl_block;
68 int err;
69
70 ctl_block = devm_platform_ioremap_resource(pdev, 1);
71 if (IS_ERR(ctl_block)) {
72 dev_err(&pdev->dev, "Cannot get reset region (%ld)!\n",
73 PTR_ERR(ctl_block));
74 return ctl_block;
75 }
76
77 gmac = devm_kzalloc(&pdev->dev, sizeof(*gmac), GFP_KERNEL);
78 if (!gmac)
79 return ERR_PTR(-ENOMEM);
80
81 gmac->ctl_block = (uintptr_t)ctl_block;
82
83 err = of_get_phy_mode(pdev->dev.of_node, &phy_mode);
84 if (err)
85 return ERR_PTR(err);
86
87 switch (phy_mode) {
88 case PHY_INTERFACE_MODE_RGMII: /* Fall through */
89 case PHY_INTERFACE_MODE_RGMII_ID /* Fall through */:
90 case PHY_INTERFACE_MODE_RGMII_RXID: /* Fall through */
91 case PHY_INTERFACE_MODE_RGMII_TXID:
92 gmac->phy_intf_sel = GMAC_CONFIG_INTF_RGMII;
93 break;
94 default:
95 dev_err(&pdev->dev, "Unsupported phy-mode (%d)\n",
96 phy_mode);
97 return ERR_PTR(-ENOTSUPP);
98 }
99
100 return gmac;
101 }
102
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 50126 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-04 4:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-04 4:33 [linux-arm:cex7 16/34] drivers//net/ethernet/stmicro/stmmac/dwmac-anarion.c:67:16: error: redeclaration of 'ctl_block' with no linkage kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.