diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 741cf4a57bfc..12aef1b15356 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3301,7 +3301,7 @@ fec_probe(struct platform_device *pdev)
/* Init network device */ ndev = alloc_etherdev_mqs(sizeof(struct fec_enet_private) + - FEC_STAT_SIZE, num_tx_qs, num_rx_qs); + FEC_STATS_SIZE, num_tx_qs, num_rx_qs); if (!ndev) return -ENOMEM; > Aieee I was typing too fast today, sorry... > > send separate "fix for the fix", or re-send patch without that silly typo? > > Nikita > >> Hi Nikita, >> >> [auto build test ERROR on net/master] >> >> url: >> https://github.com/0day-ci/linux/commits/Nikita-Yushchenko/net-fec-fix-compile-with-CONFIG_M5272/20161205-181735 >> config: arm-multi_v5_defconfig (attached as .config) >> compiler: arm-linux-gnueabi-gcc (Debian 6.1.1-9) 6.1.1 20160705 >> reproduce: >> wget >> https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross >> -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> # save the attached .config to linux build tree >> make.cross ARCH=arm >> >> All errors (new ones prefixed by >>): >> >> drivers/net/ethernet/freescale/fec_main.c: In function 'fec_probe': >>>> drivers/net/ethernet/freescale/fec_main.c:3304:7: error: 'FEC_STAT_SIZE' >>>> undeclared (first use in this function) >> FEC_STAT_SIZE, num_tx_qs, num_rx_qs); >> ^~~~~~~~~~~~~ >> drivers/net/ethernet/freescale/fec_main.c:3304:7: note: each undeclared >> identifier is reported only once for each function it appears in >> >> vim +/FEC_STAT_SIZE +3304 drivers/net/ethernet/freescale/fec_main.c >> >> 3298 int num_rx_qs; >> 3299 >> 3300 fec_enet_get_queue_num(pdev, &num_tx_qs, &num_rx_qs); >> 3301 >> 3302 /* Init network device */ >> 3303 ndev = alloc_etherdev_mqs(sizeof(struct >> fec_enet_private) + >>> 3304 FEC_STAT_SIZE, num_tx_qs, >>> num_rx_qs); >> 3305 if (!ndev) >> 3306 return -ENOMEM; >> 3307 >> >> --- >> 0-DAY kernel test infrastructure Open Source Technology Center >> https://lists.01.org/pipermail/kbuild-all Intel Corporation >>