net/core/netmem_priv.h:25 netmem_is_pp() warn: masked condition '(netmem_get_pp_magic(netmem) & ~((((0) + (((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))...
kernel test robot <[email protected]> Sat, 25 Jul 2026 22:45:00 +0800
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
BCC: [email protected] CC: [email protected] CC: [email protected] TO: Vincent Mailhol <[email protected]> CC: Yury Norov <[email protected]> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = master head: 48a5a7ab8d6ab7090564339e039c421f315de912 commit: 104ea1c84b91c9f452e497ba51602b903711cdd5 bits: unify the non-asm GE= NMASK*() date: 12 months ago :::::: branch date: 2 days ago :::::: commit date: 12 months ago config: powerpc64-randconfig-r073-20260725 (https://download.01.org/0day-ci= /archive/20260725/[email protected]/config) compiler: clang version 21.1.8 (https://github.com/llvm/llvm-project 2078da= 43e25a4623cab2d0d60decddf709aaea28) smatch: v0.5.0-9187-g5189e3fb If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Fixes: 104ea1c84b91 ("bits: unify the non-asm GENMASK*()") | Reported-by: kernel test robot <[email protected]> | Reported-by: Dan Carpenter <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ New smatch warnings: net/core/netmem_priv.h:25 netmem_is_pp() warn: masked condition '(netmem_ge= t_pp_magic(netmem) & ~((((0) + (((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) += (1 << (8 * 8 - 1 - (((-1)) < 1))))) << ((1 + __fls((64 + (6767463209352822= 784)) - (6767463209352822784)))) & ((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1= ) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) >> ((8 * 8) - 1 - ((((32) < (__ffs(= (6767463209352822784)) - (1 + __fls((64 + (6767463209352822784)) - (6767463= 209352822784))))) ?(32):(__ffs((6767463209352822784)) - (1 + __fls((64 + (6= 767463209352822784)) - (6767463209352822784))))) + ' is always false. Old smatch warnings: net/core/skbuff.c:4812 skb_segment() error: we previously assumed 'list_skb= ' could be null (see line 4747) vim +25 net/core/netmem_priv.h 8ab79ed50cf10f3 Mina Almasry 2024-09-10 22 =20 cd3c93167da0e76 Toke H=C3=B8iland-J=C3=B8rgensen 2025-04-09 23 static inl= ine bool netmem_is_pp(netmem_ref netmem) cd3c93167da0e76 Toke H=C3=B8iland-J=C3=B8rgensen 2025-04-09 24 { cd3c93167da0e76 Toke H=C3=B8iland-J=C3=B8rgensen 2025-04-09 @25 return (n= etmem_get_pp_magic(netmem) & PP_MAGIC_MASK) =3D=3D PP_SIGNATURE; cd3c93167da0e76 Toke H=C3=B8iland-J=C3=B8rgensen 2025-04-09 26 } cd3c93167da0e76 Toke H=C3=B8iland-J=C3=B8rgensen 2025-04-09 27 =20 :::::: The code at line 25 was first introduced by commit :::::: cd3c93167da0e760b5819246eae7a4ea30fd014b page_pool: Move pp_magic ch= eck into helper functions :::::: TO: Toke H=C3=B8iland-J=C3=B8rgensen <[email protected]> :::::: CC: Jakub Kicinski <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki