oe-kbuild.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* include/linux/mm.h:4178 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~((((0) + (((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784)))) & ((...
@ 2025-08-21  1:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-21  1:39 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
CC: Yury Norov <yury.norov@gmail.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   41cd3fd152634250fdd09a52a35352b3f323800d
commit: 104ea1c84b91c9f452e497ba51602b903711cdd5 bits: unify the non-asm GENMASK*()
date:   3 weeks ago
:::::: branch date: 5 hours ago
:::::: commit date: 3 weeks ago
config: powerpc64-randconfig-r073-20250819 (https://download.01.org/0day-ci/archive/20250821/202508210947.6wlJsTy5-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 93d24b6b7b148c47a2fa228a4ef31524fa1d9f3f)

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/202508210947.6wlJsTy5-lkp@intel.com/

smatch warnings:
include/linux/mm.h:4178 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~((((0) + (((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784)))) & ((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) >> ((8 * 8) - 1 - ((((32) < (__ffs((6767463209352822784)) - (1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) ?(32):(__ffs((6767463209352822784)) - (1 + __fls((64 + (6767463209352822784)) - (6767463209352822784))))) + (1 + __fls((6' is always false.

vim +4178 include/linux/mm.h

cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4174  
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4175  #ifdef CONFIG_PAGE_POOL
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4176  static inline bool page_pool_page_is_pp(struct page *page)
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4177  {
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09 @4178  	return (page->pp_magic & PP_MAGIC_MASK) == PP_SIGNATURE;
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4179  }
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4180  #else
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4181  static inline bool page_pool_page_is_pp(struct page *page)
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4182  {
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4183  	return false;
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4184  }
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4185  #endif
cd3c93167da0e7 Toke Høiland-Jørgensen 2025-04-09  4186  

:::::: The code at line 4178 was first introduced by commit
:::::: cd3c93167da0e760b5819246eae7a4ea30fd014b page_pool: Move pp_magic check into helper functions

:::::: TO: Toke Høiland-Jørgensen <toke@redhat.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:[~2025-08-21  1:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-21  1:39 include/linux/mm.h:4178 page_pool_page_is_pp() warn: masked condition '(page->pp_magic & ~((((0) + (((((1 << (8 * 8 - 1 - (((-1)) < 1))) - 1) + (1 << (8 * 8 - 1 - (((-1)) < 1))))) << ((1 + __fls((64 + (6767463209352822784)) - (6767463209352822784)))) & (( 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;
as well as URLs for NNTP newsgroup(s).