From: kernel test robot <lkp@intel.com>
To: Yunsheng Lin <linyunsheng@huawei.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 18 Sep 2024 18:15:16 +0800 [thread overview]
Message-ID: <202409181807.vDJMIpsz-lkp@intel.com> (raw)
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
reply other threads:[~2024-09-18 10:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202409181807.vDJMIpsz-lkp@intel.com \
--to=lkp@intel.com \
--cc=linyunsheng@huawei.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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