[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201906200438.pHY3J908%lkp@intel.com>
Date: Thu, 20 Jun 2019 04:35:39 +0800
From: kbuild test robot <lkp@...el.com>
To: Jesper Dangaard Brouer <brouer@...hat.com>
Cc: kbuild-all@...org, netdev@...r.kernel.org,
Ilias Apalodimas <ilias.apalodimas@...aro.org>
Subject: [net-next:master 1066/1074] include/net/page_pool.h:165:1: warning:
no return statement in function returning non-void
tree: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 6c9bef32c6e742e847fc28c9bf7721cbfa003fa6
commit: 99c07c43c4ea0bc101331401a0fabfc51933c6a3 [1066/1074] xdp: tracking page_pool resources and safe removal
config: xtensa-common_defconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.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 99c07c43c4ea0bc101331401a0fabfc51933c6a3
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
In file included from net//core/xdp.c:14:0:
include/net/page_pool.h: In function 'page_pool_request_shutdown':
>> include/net/page_pool.h:165:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
vim +165 include/net/page_pool.h
148
149 /* API user MUST have disconnected alloc-side (not allowed to call
150 * page_pool_alloc_pages()) before calling this. The free-side can
151 * still run concurrently, to handle in-flight packet-pages.
152 *
153 * A request to shutdown can fail (with false) if there are still
154 * in-flight packet-pages.
155 */
156 bool __page_pool_request_shutdown(struct page_pool *pool);
157 static inline bool page_pool_request_shutdown(struct page_pool *pool)
158 {
159 /* When page_pool isn't compiled-in, net/core/xdp.c doesn't
160 * allow registering MEM_TYPE_PAGE_POOL, but shield linker.
161 */
162 #ifdef CONFIG_PAGE_POOL
163 return __page_pool_request_shutdown(pool);
164 #endif
> 165 }
166
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (10378 bytes)
Powered by blists - more mailing lists