linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-unstable 101/288] net/core/netmem_priv.h:19:73: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2026-01-16  6:29 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-16  6:29 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:   f8ed52ac0cfbddff992bb9600941bfe51e1e385a
commit: 71b73571e052b94a2af7835373d4090afee5e1eb [101/288] mm: introduce a new page type for page pool in page type
config: x86_64-randconfig-123-20260116 (https://download.01.org/0day-ci/archive/20260116/202601161420.8xY65Dyx-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260116/202601161420.8xY65Dyx-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/202601161420.8xY65Dyx-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   net/core/skbuff.c: note: in included file:
>> net/core/netmem_priv.h:19:73: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted netmem_ref [usertype] netmem @@     got unsigned long @@
   net/core/netmem_priv.h:19:73: sparse:     expected restricted netmem_ref [usertype] netmem
   net/core/netmem_priv.h:19:73: sparse:     got unsigned long
>> net/core/netmem_priv.h:19:73: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted netmem_ref [usertype] netmem @@     got unsigned long @@
   net/core/netmem_priv.h:19:73: sparse:     expected restricted netmem_ref [usertype] netmem
   net/core/netmem_priv.h:19:73: sparse:     got unsigned long
   net/core/skbuff.c: note: in included file (through include/linux/skbuff.h, include/net/net_namespace.h, include/linux/inet.h):
   include/net/checksum.h:33:39: sparse: sparse: incorrect type in argument 3 (different base types) @@     expected restricted __wsum [usertype] sum @@     got unsigned int @@
   include/net/checksum.h:33:39: sparse:     expected restricted __wsum [usertype] sum
   include/net/checksum.h:33:39: sparse:     got unsigned int

vim +19 net/core/netmem_priv.h

    10	
    11	static inline bool netmem_is_pp(netmem_ref netmem)
    12	{
    13		/* XXX: Now that the offset of page_type is shared between
    14		 * struct page and net_iov, just cast the netmem to struct page
    15		 * unconditionally by clearing NET_IOV if any, no matter whether
    16		 * it comes from struct net_iov or struct page.  This should be
    17		 * adjusted once the offset is no longer shared.
    18		 */
  > 19		return PageNetpp(__netmem_to_page((__force unsigned long)netmem & ~NET_IOV));
    20	}
    21	

-- 
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:[~2026-01-16  6:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-16  6:29 [akpm-mm:mm-unstable 101/288] net/core/netmem_priv.h:19:73: sparse: sparse: incorrect type in argument 1 (different base types) 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