netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next:master 1066/1074] include/net/page_pool.h:165:1: warning: no return statement in function returning non-void
@ 2019-06-19 20:35 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2019-06-19 20:35 UTC (permalink / raw)
  To: Jesper Dangaard Brouer; +Cc: kbuild-all, netdev, Ilias Apalodimas

[-- Attachment #1: Type: text/plain, Size: 1993 bytes --]

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@intel.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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 10378 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-19 20:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-19 20:35 [net-next:master 1066/1074] include/net/page_pool.h:165:1: warning: no return statement in function returning non-void kbuild test robot

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).