From: kernel test robot <lkp@intel.com>
To: Bixuan Cui <cuibixuan@huawei.com>,
davem@davemloft.net, kuba@kernel.org, linux-next@vger.kernel.org
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, jdmason@kudzu.us,
christophe.jaillet@wanadoo.fr, john.wanghui@huawei.com
Subject: Re: [PATCH] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX
Date: Thu, 16 Jul 2020 22:11:31 +0800 [thread overview]
Message-ID: <202007162244.Q5g9YK65%lkp@intel.com> (raw)
In-Reply-To: <20200716173247.78912-1-cuibixuan@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 3203 bytes --]
Hi Bixuan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on sparc-next/master]
[also build test ERROR on net-next/master net/master linus/master v5.8-rc5 next-20200716]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Bixuan-Cui/net-neterion-vxge-reduce-stack-usage-in-VXGE_COMPLETE_VPATH_TX/20200716-173219
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next.git master
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/net/ethernet/neterion/vxge/vxge-main.c: In function 'VXGE_COMPLETE_VPATH_TX':
>> drivers/net/ethernet/neterion/vxge/vxge-main.c:103:19: error: conflicting types for 'completed'
103 | struct sk_buff **completed;
| ^~~~~~~~~
drivers/net/ethernet/neterion/vxge/vxge-main.c:102:18: note: previous declaration of 'completed' was here
102 | struct sk_buff *completed[NR_SKB_COMPLETED];
| ^~~~~~~~~
>> drivers/net/ethernet/neterion/vxge/vxge-main.c:126:2: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration]
126 | free(completed);
| ^~~~
drivers/net/ethernet/neterion/vxge/vxge-main.c:60:1: note: 'free' is defined in header '<stdlib.h>'; did you forget to '#include <stdlib.h>'?
59 | #include "vxge-main.h"
+++ |+#include <stdlib.h>
60 | #include "vxge-reg.h"
cc1: some warnings being treated as errors
vim +/completed +103 drivers/net/ethernet/neterion/vxge/vxge-main.c
96
97 static inline void VXGE_COMPLETE_VPATH_TX(struct vxge_fifo *fifo)
98 {
99 struct sk_buff **skb_ptr = NULL;
100 struct sk_buff **temp;
101 #define NR_SKB_COMPLETED 128
102 struct sk_buff *completed[NR_SKB_COMPLETED];
> 103 struct sk_buff **completed;
104 int more;
105
106 completed = kcalloc(NR_SKB_COMPLETED, sizeof(*completed),
107 GFP_KERNEL);
108 if (!completed)
109 return;
110
111 do {
112 more = 0;
113 skb_ptr = completed;
114
115 if (__netif_tx_trylock(fifo->txq)) {
116 vxge_hw_vpath_poll_tx(fifo->handle, &skb_ptr,
117 NR_SKB_COMPLETED, &more);
118 __netif_tx_unlock(fifo->txq);
119 }
120
121 /* free SKBs */
122 for (temp = completed; temp != skb_ptr; temp++)
123 dev_consume_skb_irq(*temp);
124 } while (more);
125
> 126 free(completed);
127 }
128
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 64456 bytes --]
next prev parent reply other threads:[~2020-07-16 14:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-16 17:32 [PATCH] net: neterion: vxge: reduce stack usage in VXGE_COMPLETE_VPATH_TX Bixuan Cui
2020-07-16 9:46 ` Joe Perches
2020-07-16 9:59 ` Bixuan Cui
2020-07-16 11:20 ` kernel test robot
2020-07-16 14:11 ` kernel test robot [this message]
2020-07-19 17:05 ` Stephen Hemminger
2020-07-20 1:57 ` Bixuan Cui
2020-07-20 1:58 ` [PATCH v2] " Bixuan Cui
2020-07-21 1:38 ` David Miller
2020-07-21 12:34 ` Bixuan Cui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007162244.Q5g9YK65%lkp@intel.com \
--to=lkp@intel.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=cuibixuan@huawei.com \
--cc=davem@davemloft.net \
--cc=jdmason@kudzu.us \
--cc=john.wanghui@huawei.com \
--cc=kbuild-all@lists.01.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).