[jimc:dd-shrink-cached 63/64] lib/dynamic_debug.c:2630:9: error: implicit declaration of function 'arena_maple_tree_init'; did you mean 'maple_tree_init'?

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://github.com/jimc/linux.git dd-shrink-cached
head:   917ff2e5a74ae1c252ad3a2c9017bd464f9258f9
commit: 4acac60938dcd93e79ded0a1601cd5804d915061 [63/64] lib/arena_maple_tree: Fix initialization, alignment, and reclaim bugs
config: sh-randconfig-r133-20260819 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: sh4-linux-gcc (GCC) 16.1.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/[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]/

All errors (new ones prefixed by >>):

   lib/dynamic_debug.c:112:20: warning: no previous prototype for 'ddebug_arena_alloc' [-Wmissing-prototypes]
     112 | struct maple_node *ddebug_arena_alloc(void *arena, gfp_t gfp)
         |                    ^~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c: In function 'ddebug_resolve_site':
   lib/dynamic_debug.c:408:9: error: implicit declaration of function 'arena_mas_init' [-Wimplicit-function-declaration]
     408 |         arena_mas_init(&mas, mt, (unsigned long)dp);
         |         ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:409:15: error: implicit declaration of function 'arena_mas_walk' [-Wimplicit-function-declaration]
     409 |         val = arena_mas_walk(&mas);
         |               ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:409:13: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     409 |         val = arena_mas_walk(&mas);
         |             ^
   lib/dynamic_debug.c:415:39: error: implicit declaration of function 'arena_mas_prev' [-Wimplicit-function-declaration]
     415 |                         while ((val = arena_mas_prev(&mas, 0))) {
         |                                       ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:415:37: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     415 |                         while ((val = arena_mas_prev(&mas, 0))) {
         |                                     ^
   lib/dynamic_debug.c: In function 'ddebug_store_tagged_range':
   lib/dynamic_debug.c:474:22: error: implicit declaration of function 'arena_mtree_store_range'; did you mean 'mtree_store_range'? [-Wimplicit-function-declaration]
     474 |                 rc = arena_mtree_store_range(mt, first, last, (void *)name, GFP_KERNEL);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
         |                      mtree_store_range
   lib/dynamic_debug.c: In function 'ddebug_resolve_range':
   lib/dynamic_debug.c:2310:21: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2310 |                 val = arena_mas_walk(&mas);
         |                     ^
   lib/dynamic_debug.c:2321:21: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2321 |         while ((val = arena_mas_prev(&mas, 0))) {
         |                     ^
   lib/dynamic_debug.c:2336:23: error: implicit declaration of function 'arena_mas_next' [-Wimplicit-function-declaration]
    2336 |         while ((val = arena_mas_next(&mas, ULONG_MAX))) {
         |                       ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:2336:21: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    2336 |         while ((val = arena_mas_next(&mas, ULONG_MAX))) {
         |                     ^
   lib/dynamic_debug.c: In function 'ddebug_shrinker_scan':
   lib/dynamic_debug.c:2429:17: error: implicit declaration of function 'arena___mt_destroy' [-Wimplicit-function-declaration]
    2429 |                 arena___mt_destroy(&dd_modules_site_map.mt);
         |                 ^~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c: In function 'dynamic_debug_init':
>> lib/dynamic_debug.c:2630:9: error: implicit declaration of function 'arena_maple_tree_init'; did you mean 'maple_tree_init'? [-Wimplicit-function-declaration]
    2630 |         arena_maple_tree_init();
         |         ^~~~~~~~~~~~~~~~~~~~~
         |         maple_tree_init
   lib/dynamic_debug.c: At top level:
   lib/dynamic_debug.c:2249:13: warning: 'ddebug_drop_all_cached_prefixes' defined but not used [-Wunused-function]
    2249 | static void ddebug_drop_all_cached_prefixes(const struct _ddebug_info *di)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +2630 lib/dynamic_debug.c

  2612	
  2613	static int __init dynamic_debug_init(void)
  2614	{
  2615		struct _ddebug *iter, *iter_mod_start;
  2616		int ret, i, mod_sites, mod_ct;
  2617		const char *modname;
  2618		char *cmdline;
  2619	
  2620		struct _ddebug_info di = {
  2621			.descs.start = __start___dyndbg_descs,
  2622			.sites.start = __start___dyndbg_sites,
  2623			.maps.start  = __start___dyndbg_class_maps,
  2624			.users.start = __start___dyndbg_class_users,
  2625			.descs.len = __stop___dyndbg_descs - __start___dyndbg_descs,
  2626			.sites.len = __stop___dyndbg_sites - __start___dyndbg_sites,
  2627			.maps.len  = __stop___dyndbg_class_maps - __start___dyndbg_class_maps,
  2628			.users.len = __stop___dyndbg_class_users - __start___dyndbg_class_users,
  2629		};
> 2630		arena_maple_tree_init();
  2631	

--
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.