Re: [PATCH] of: Make of_match_node() an inline stub for CONFIG_OF=n

From: kbuild test robot
Date: Fri Apr 07 2017 - 03:00:08 EST


Hi Florian,

[auto build test ERROR on v4.9-rc8]
[also build test ERROR on next-20170406]
[cannot apply to glikely/devicetree/next]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Florian-Fainelli/of-Make-of_match_node-an-inline-stub-for-CONFIG_OF-n/20170407-111805
config: x86_64-acpi-redef (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/net/ethernet/cadence/macb.c: In function 'macb_probe':
>> drivers/net/ethernet/cadence/macb.c:2967:25: error: 'macb_dt_ids' undeclared (first use in this function)
match = of_match_node(macb_dt_ids, np);
^~~~~~~~~~~
drivers/net/ethernet/cadence/macb.c:2967:25: note: each undeclared identifier is reported only once for each function it appears in

vim +/macb_dt_ids +2967 drivers/net/ethernet/cadence/macb.c

421d9df06 Cyrille Pitchen 2015-03-07 2951 struct phy_device *phydev;
421d9df06 Cyrille Pitchen 2015-03-07 2952 struct net_device *dev;
421d9df06 Cyrille Pitchen 2015-03-07 2953 struct resource *regs;
421d9df06 Cyrille Pitchen 2015-03-07 2954 void __iomem *mem;
421d9df06 Cyrille Pitchen 2015-03-07 2955 const char *mac;
421d9df06 Cyrille Pitchen 2015-03-07 2956 struct macb *bp;
421d9df06 Cyrille Pitchen 2015-03-07 2957 int err;
421d9df06 Cyrille Pitchen 2015-03-07 2958
f2ce8a9e4 Andy Shevchenko 2015-07-24 2959 regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
f2ce8a9e4 Andy Shevchenko 2015-07-24 2960 mem = devm_ioremap_resource(&pdev->dev, regs);
f2ce8a9e4 Andy Shevchenko 2015-07-24 2961 if (IS_ERR(mem))
f2ce8a9e4 Andy Shevchenko 2015-07-24 2962 return PTR_ERR(mem);
f2ce8a9e4 Andy Shevchenko 2015-07-24 2963
c69618b3e Nicolas Ferre 2015-03-31 2964 if (np) {
c69618b3e Nicolas Ferre 2015-03-31 2965 const struct of_device_id *match;
c69618b3e Nicolas Ferre 2015-03-31 2966
c69618b3e Nicolas Ferre 2015-03-31 @2967 match = of_match_node(macb_dt_ids, np);
c69618b3e Nicolas Ferre 2015-03-31 2968 if (match && match->data) {
c69618b3e Nicolas Ferre 2015-03-31 2969 macb_config = match->data;
c69618b3e Nicolas Ferre 2015-03-31 2970 clk_init = macb_config->clk_init;
c69618b3e Nicolas Ferre 2015-03-31 2971 init = macb_config->init;
c69618b3e Nicolas Ferre 2015-03-31 2972 }
c69618b3e Nicolas Ferre 2015-03-31 2973 }
c69618b3e Nicolas Ferre 2015-03-31 2974
aead88bd0 shubhrajyoti.datta@xxxxxxxxxx 2016-08-16 2975 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk);

:::::: The code at line 2967 was first introduced by commit
:::::: c69618b3e4f220f4990b91596d40ea3c4cdc938a net/macb: fix probe sequence to setup clocks earlier

:::::: TO: Nicolas Ferre <nicolas.ferre@xxxxxxxxx>
:::::: CC: David S. Miller <davem@xxxxxxxxxxxxx>

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip