[android-common:android15-6.6-2026-04 0/7] include/trace/hooks/swapfile.h:16:1: sparse: sparse: incorrect type in assignment (different address spaces)

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://android.googlesource.com/kernel/common android15-6.6-2026-04
head:   94ba6cba4be120105fa6919c2279fc8e0efe174e
commit: a402d311bb6a70f790ec81024488326277d1ba75 [0/7] ANDROID: vendor hooks: add hooks to support the functionality and management of multiple swap devices.
config: i386-randconfig-062-20260814 (https://download.01.org/0day-ci/archive/20260814/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)
   mm/swapfile.c:628:13: sparse: sparse: context imbalance in 'cluster_reclaim_range' - unexpected unlock
   mm/swapfile.c:765:23: sparse: sparse: context imbalance in 'alloc_swap_scan_cluster' - different lock contexts for basic block
   mm/swapfile.c:784:31: sparse: sparse: context imbalance in 'swap_reclaim_full_clusters' - unexpected unlock
   mm/swapfile.c:1051:13: sparse: sparse: context imbalance in 'swap_offset_available_and_locked' - wrong count at exit
   mm/swapfile.c:1257:9: sparse: sparse: context imbalance in 'scan_swap_map_slots' - unexpected unlock
   mm/swapfile.c: note: in included file:
>> include/trace/hooks/swapfile.h:16:1: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct tracepoint_func *it_func_ptr @@     got struct tracepoint_func [noderef] __rcu *funcs @@
   include/trace/hooks/swapfile.h:16:1: sparse:     expected struct tracepoint_func *it_func_ptr
   include/trace/hooks/swapfile.h:16:1: sparse:     got struct tracepoint_func [noderef] __rcu *funcs
   mm/swapfile.c:1414:36: sparse: sparse: context imbalance in 'swap_info_get_cont' - unexpected unlock
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in '__swap_entry_free' - different lock contexts for basic block
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in '__swap_entries_free' - different lock contexts for basic block
   mm/swapfile.c:1619:23: sparse: sparse: context imbalance in 'swap_entry_range_free' - different lock contexts for basic block
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in 'cluster_swap_free_nr' - different lock contexts for basic block
   mm/swapfile.c:1699:38: sparse: sparse: context imbalance in 'put_swap_folio' - different lock contexts for basic block
   mm/swapfile.c:1743:28: sparse: sparse: context imbalance in 'swapcache_free_entries' - unexpected unlock
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in 'swap_swapcount' - different lock contexts for basic block
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in 'swp_swapcount' - different lock contexts for basic block
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in 'swap_page_trans_huge_swapped' - different lock contexts for basic block
   mm/swapfile.c:2202:17: sparse: sparse: context imbalance in 'unuse_pte' - unexpected unlock
   mm/swapfile.c:2289:26: sparse: sparse: context imbalance in 'unuse_pte_range' - unexpected unlock
   mm/swapfile.c:458:9: sparse: sparse: context imbalance in '__swap_duplicate' - different lock contexts for basic block
   mm/swapfile.c:3972:23: sparse: sparse: context imbalance in 'add_swap_count_continuation' - different lock contexts for basic block

vim +16 include/trace/hooks/swapfile.h

    12	
    13	DECLARE_HOOK(android_vh_get_swap_pages_bypass,
    14		TP_PROTO(struct swap_info_struct *si, int entry_order, bool *skip),
    15		TP_ARGS(si, entry_order, skip));
  > 16	DECLARE_RESTRICTED_HOOK(android_rvh_get_swap_pages_bypass,
    17		TP_PROTO(struct swap_info_struct *si, int entry_order, bool *skip, swp_entry_t *entry),
    18		TP_ARGS(si, entry_order, skip, entry), 3);
    19	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.