* [toke:page-pool-track-dma 3/3] include/net/page_pool/types.h:319 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~(((0) + (((~((0))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) & (~((0)) >> (64 - 1 - ((((32) < (__ffs((6767463209352822784)) -...
@ 2025-04-07 17:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-04-07 17:43 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "Toke Høiland-Jørgensen" <toke@redhat.com>
CC: Mina Almasry <almasrymina@google.com>
CC: Jesper Dangaard Brouer <hawk@kernel.org>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git page-pool-track-dma
head: 00a0b4613ed5cb0e10f2e370a7fd613a742e2c1d
commit: 00a0b4613ed5cb0e10f2e370a7fd613a742e2c1d [3/3] page_pool: Track DMA-mapped pages and unmap them when destroying the pool
:::::: branch date: 10 days ago
:::::: commit date: 10 days ago
config: powerpc64-randconfig-r071-20250407 (https://download.01.org/0day-ci/archive/20250408/202504080108.OQLQmxdd-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
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>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202504080108.OQLQmxdd-lkp@intel.com/
smatch warnings:
include/net/page_pool/types.h:319 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~(((0) + (((~((0))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) & (~((0)) >> (64 - 1 - ((((32) < (__ffs((6767463209352822784)) - (1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) ?(32):(__ffs((6767463209352822784)) - (1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) + (1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))) - 1))))) | 3)) == (64 + (6767463209352822784))' is always false.
vim +319 include/net/page_pool/types.h
a4a22a1caf31aeb Toke Høiland-Jørgensen 2025-03-10 316
a4a22a1caf31aeb Toke Høiland-Jørgensen 2025-03-10 317 static inline bool page_pool_page_is_pp(struct page *page)
a4a22a1caf31aeb Toke Høiland-Jørgensen 2025-03-10 318 {
a4a22a1caf31aeb Toke Høiland-Jørgensen 2025-03-10 @319 return (page->pp_magic & PP_MAGIC_MASK) == PP_SIGNATURE;
a4a22a1caf31aeb Toke Høiland-Jørgensen 2025-03-10 320 }
a9ca9f9ceff382b Yunsheng Lin 2023-08-04 321 #else
a9ca9f9ceff382b Yunsheng Lin 2023-08-04 322 static inline void page_pool_destroy(struct page_pool *pool)
a9ca9f9ceff382b Yunsheng Lin 2023-08-04 323 {
a9ca9f9ceff382b Yunsheng Lin 2023-08-04 324 }
a9ca9f9ceff382b Yunsheng Lin 2023-08-04 325
:::::: The code at line 319 was first introduced by commit
:::::: a4a22a1caf31aeb57416327c9dfca479614b6b76 page_pool: Move pp_magic check into helper functions
:::::: TO: Toke Høiland-Jørgensen <toke@redhat.com>
:::::: CC: Toke Høiland-Jørgensen <toke@redhat.com>
--
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:[~2025-04-07 17:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-07 17:43 [toke:page-pool-track-dma 3/3] include/net/page_pool/types.h:319 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~(((0) + (((~((0))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) & (~((0)) >> (64 - 1 - ((((32) < (__ffs((6767463209352822784)) - kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.