From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: 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)))) & ((...
Date: Thu, 21 Aug 2025 09:39:34 +0800 [thread overview]
Message-ID: <202508210947.6wlJsTy5-lkp@intel.com> (raw)
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
next reply other threads:[~2025-08-21 1:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 1:39 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-12-31 2:38 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
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=202508210947.6wlJsTy5-lkp@intel.com \
--to=lkp@intel.com \
--cc=error27@gmail.com \
--cc=oe-kbuild@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 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.