All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [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)) -...
Date: Tue, 8 Apr 2025 01:43:27 +0800	[thread overview]
Message-ID: <202504080108.OQLQmxdd-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-04-07 17:44 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=202504080108.OQLQmxdd-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.