* [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2026-01-16 8:41 kernel test robot
2026-01-16 23:15 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2026-01-16 8:41 UTC (permalink / raw)
To: Byungchul Park
Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List, Pavel Begunkov,
Toke Høiland-Jørgensen
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types)
2026-01-16 8:41 [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
@ 2026-01-16 23:15 ` Andrew Morton
2026-01-26 9:16 ` Byungchul Park
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2026-01-16 23:15 UTC (permalink / raw)
To: kernel test robot
Cc: Byungchul Park, oe-kbuild-all, David Hildenbrand,
Linux Memory Management List, Pavel Begunkov,
Toke Høiland-Jørgensen
On Fri, 16 Jan 2026 16:41:32 +0800 kernel test robot <lkp@intel.com> wrote:
> 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
Oh, OK.
Byungchul, please remind me why I'm carrying a page-pool patch? I
applied it because email headers and because Suggested-by:David, but
these things are usually carried in the networking tree.
And I never applied [patch 2/2]
(https://lkml.kernel.org/r/20251215071001.78263-3-byungchul@sk.com)
because "kernel test robot" reported a build error.
In fact, I'll drop the patch - please let's have a redo.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types)
2026-01-16 23:15 ` Andrew Morton
@ 2026-01-26 9:16 ` Byungchul Park
0 siblings, 0 replies; 3+ messages in thread
From: Byungchul Park @ 2026-01-26 9:16 UTC (permalink / raw)
To: Andrew Morton
Cc: kernel test robot, oe-kbuild-all, David Hildenbrand,
Linux Memory Management List, Pavel Begunkov,
Toke Høiland-Jørgensen, kernel_team
On Fri, Jan 16, 2026 at 03:15:00PM -0800, Andrew Morton wrote:
> On Fri, 16 Jan 2026 16:41:32 +0800 kernel test robot <lkp@intel.com> wrote:
>
> > 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
>
> Oh, OK.
>
> Byungchul, please remind me why I'm carrying a page-pool patch? I
> applied it because email headers and because Suggested-by:David, but
> these things are usually carried in the networking tree.
Sorry for late reply. This patch changes both mm and network, but I
aimed at mm tree since I thought it's more about mm - Jakub also think
so. See the following link:
https://lore.kernel.org/all/20250813075212.051b5178@kernel.org/
> And I never applied [patch 2/2]
> (https://lkml.kernel.org/r/20251215071001.78263-3-byungchul@sk.com)
> because "kernel test robot" reported a build error.
>
> In fact, I'll drop the patch - please let's have a redo.
Okay. I will retry. Thanks.
Byungchul
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-01-26 9:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-16 8:41 [akpm-mm:mm-unstable /301] net/core/page_pool.c:713:71: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
2026-01-16 23:15 ` Andrew Morton
2026-01-26 9:16 ` Byungchul Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox