Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [linyunsheng:net-next-pp-inflight-fix 2/2] net/core/page_pool_priv.h:47:1: warning: non-void function does not return a value
@ 2024-09-18 10:15 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-18 10:15 UTC (permalink / raw)
  To: Yunsheng Lin; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/gestionlin/linux.git net-next-pp-inflight-fix
head:   585c4413fc2f6385d74132e13b42cba3e4123eee
commit: 585c4413fc2f6385d74132e13b42cba3e4123eee [2/2] page_pool: fix IOMMU crash when driver has already unbound
config: i386-defconfig (https://download.01.org/0day-ci/archive/20240918/202409181807.vDJMIpsz-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240918/202409181807.vDJMIpsz-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409181807.vDJMIpsz-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from net/core/netdev_rx_queue.c:7:
>> net/core/page_pool_priv.h:47:1: warning: non-void function does not return a value [-Wreturn-type]
      47 | }
         | ^
   1 warning generated.


vim +47 net/core/page_pool_priv.h

8ab79ed50cf10f Mina Almasry 2024-09-10  37  
0f921404689398 Mina Almasry 2024-09-10  38  #if defined(CONFIG_PAGE_POOL)
585c4413fc2f63 Yunsheng Lin 2024-09-12  39  bool page_pool_set_pp_info(struct page_pool *pool, netmem_ref netmem);
585c4413fc2f63 Yunsheng Lin 2024-09-12  40  void page_pool_clear_pp_info(struct page_pool *pool, netmem_ref netmem);
0f921404689398 Mina Almasry 2024-09-10  41  int page_pool_check_memory_provider(struct net_device *dev,
0f921404689398 Mina Almasry 2024-09-10  42  				    struct netdev_rx_queue *rxq);
0f921404689398 Mina Almasry 2024-09-10  43  #else
585c4413fc2f63 Yunsheng Lin 2024-09-12  44  static inline bool page_pool_set_pp_info(struct page_pool *pool,
0f921404689398 Mina Almasry 2024-09-10  45  					 netmem_ref netmem)
0f921404689398 Mina Almasry 2024-09-10  46  {
0f921404689398 Mina Almasry 2024-09-10 @47  }
585c4413fc2f63 Yunsheng Lin 2024-09-12  48  static inline void page_pool_clear_pp_info(struct page_pool *pool,
585c4413fc2f63 Yunsheng Lin 2024-09-12  49  					   netmem_ref netmem)
0f921404689398 Mina Almasry 2024-09-10  50  {
0f921404689398 Mina Almasry 2024-09-10  51  }
0f921404689398 Mina Almasry 2024-09-10  52  static inline int page_pool_check_memory_provider(struct net_device *dev,
0f921404689398 Mina Almasry 2024-09-10  53  						  struct netdev_rx_queue *rxq)
0f921404689398 Mina Almasry 2024-09-10  54  {
0f921404689398 Mina Almasry 2024-09-10  55  	return 0;
0f921404689398 Mina Almasry 2024-09-10  56  }
0f921404689398 Mina Almasry 2024-09-10  57  #endif
0f921404689398 Mina Almasry 2024-09-10  58  

:::::: The code at line 47 was first introduced by commit
:::::: 0f921404689398943257793f7240db239a23b609 memory-provider: dmabuf devmem memory provider

:::::: TO: Mina Almasry <almasrymina@google.com>
:::::: CC: Jakub Kicinski <kuba@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2024-09-18 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 10:15 [linyunsheng:net-next-pp-inflight-fix 2/2] net/core/page_pool_priv.h:47:1: warning: non-void function does not return a value kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox