From: kernel test robot <lkp@intel.com>
To: Byungchul Park <byungchul@sk.com>
Cc: oe-kbuild-all@lists.linux.dev,
"David Hildenbrand" <david@kernel.org>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Linux Memory Management List" <linux-mm@kvack.org>,
"Pavel Begunkov" <asml.silence@gmail.com>,
"Toke Høiland-Jørgensen " <toke@redhat.com>
Subject: [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types)
Date: Fri, 16 Jan 2026 16:41:32 +0800 [thread overview]
Message-ID: <202601161606.8RuyUh2k-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: fe2c34b6ea5a0e1175c30d59bc1c28caafb02c62
commit: 7699fe82442a62ea29a3745b29dbb8ef8c42d8db [/301] mm: introduce a new page type for page pool in page type
config: x86_64-randconfig-122-20260115 (https://download.01.org/0day-ci/archive/20260116/202601161606.8RuyUh2k-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601161606.8RuyUh2k-lkp@intel.com/reproduce)
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>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601161606.8RuyUh2k-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted netmem_ref [usertype] netmem @@ got unsigned long @@
net/core/page_pool.c:713:71: sparse: expected restricted netmem_ref [usertype] netmem
net/core/page_pool.c:713:71: sparse: got unsigned long
net/core/page_pool.c:734:73: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted netmem_ref [usertype] netmem @@ got unsigned long @@
net/core/page_pool.c:734:73: sparse: expected restricted netmem_ref [usertype] netmem
net/core/page_pool.c:734:73: sparse: got unsigned long
vim +713 net/core/page_pool.c
702
703 void page_pool_set_pp_info(struct page_pool *pool, netmem_ref netmem)
704 {
705 netmem_set_pp(netmem, pool);
706
707 /* XXX: Now that the offset of page_type is shared between
708 * struct page and net_iov, just cast the netmem to struct page
709 * unconditionally by clearing NET_IOV if any, no matter whether
710 * it comes from struct net_iov or struct page. This should be
711 * adjusted once the offset is no longer shared.
712 */
> 713 __SetPageNetpp(__netmem_to_page((__force unsigned long)netmem & ~NET_IOV));
714
715 /* Ensuring all pages have been split into one fragment initially:
716 * page_pool_set_pp_info() is only called once for every page when it
717 * is allocated from the page allocator and page_pool_fragment_page()
718 * is dirtying the same cache line as the page->pp_magic above, so
719 * the overhead is negligible.
720 */
721 page_pool_fragment_netmem(netmem, 1);
722 if (pool->has_init_callback)
723 pool->slow.init_callback(netmem, pool->slow.init_arg);
724 }
725
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-01-16 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-16 8:41 kernel test robot [this message]
2026-01-16 23:15 ` [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types) Andrew Morton
2026-01-26 9:16 ` Byungchul Park
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=202601161606.8RuyUh2k-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=asml.silence@gmail.com \
--cc=byungchul@sk.com \
--cc=david@kernel.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=toke@redhat.com \
/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.