Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751547AbcLEODu (ORCPT ); Mon, 5 Dec 2016 09:03:50 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38107 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751064AbcLEODr (ORCPT ); Mon, 5 Dec 2016 09:03:47 -0500 Subject: Re: [patch net v2] net: fec: fix compile with CONFIG_M5272 To: kbuild test robot References: <201612052104.HSl9jlj9%fengguang.wu@intel.com> <60acf0f4-2f1f-2b2c-06ed-b1d8cb03525d@cogentembedded.com> Cc: kbuild-all@01.org, "David S. Miller" , Fugang Duan , Troy Kisky , Andrew Lunn , Eric Nelson , Philippe Reynes , Johannes Berg , netdev@vger.kernel.org, Chris Healy , Fabio Estevam , linux-kernel@vger.kernel.org From: Nikita Yushchenko Message-ID: <113aa199-9b9f-c215-bfcc-251b8c7e85f7@cogentembedded.com> Date: Mon, 5 Dec 2016 17:03:31 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <60acf0f4-2f1f-2b2c-06ed-b1d8cb03525d@cogentembedded.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2274 Lines: 59 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 >>