[jimc:dd-shrink-cached 63/64] lib/dynamic_debug.c:2630:2: error: call to undeclared function 'arena_maple_tree_init'; ISO C99 and later do not support implicit function declarations

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: arm64-randconfig-002-20260819 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
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 function 'ddebug_arena_alloc' [-Wmissing-prototypes]
     112 | struct maple_node *ddebug_arena_alloc(void *arena, gfp_t gfp)
         |                    ^
   lib/dynamic_debug.c:112:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     112 | struct maple_node *ddebug_arena_alloc(void *arena, gfp_t gfp)
         | ^
         | static 
   lib/dynamic_debug.c:408:2: error: call to undeclared function 'arena_mas_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     408 |         arena_mas_init(&mas, mt, (unsigned long)dp);
         |         ^
   lib/dynamic_debug.c:409:8: error: call to undeclared function 'arena_mas_walk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     409 |         val = arena_mas_walk(&mas);
         |               ^
   lib/dynamic_debug.c:409:6: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
     409 |         val = arena_mas_walk(&mas);
         |             ^ ~~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c:415:18: error: call to undeclared function 'arena_mas_prev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     415 |                         while ((val = arena_mas_prev(&mas, 0))) {
         |                                       ^
   lib/dynamic_debug.c:415:16: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
     415 |                         while ((val = arena_mas_prev(&mas, 0))) {
         |                                     ^ ~~~~~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c:474:8: error: call to undeclared function 'arena_mtree_store_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     474 |                 rc = arena_mtree_store_range(mt, first, last, (void *)name, GFP_KERNEL);
         |                      ^
   lib/dynamic_debug.c:474:8: note: did you mean 'mtree_store_range'?
   include/linux/maple_tree.h:381:5: note: 'mtree_store_range' declared here
     381 | int mtree_store_range(struct maple_tree *mt, unsigned long first,
         |     ^
   lib/dynamic_debug.c:477:8: error: call to undeclared function 'arena_mtree_store_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     477 |                 rc = arena_mtree_store_range(mt, addr, addr, (void *)name, GFP_KERNEL);
         |                      ^
   lib/dynamic_debug.c:480:8: error: call to undeclared function 'arena_mtree_store_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     480 |                 rc = arena_mtree_store_range(mt, addr, addr, (void *)name, GFP_KERNEL);
         |                      ^
   lib/dynamic_debug.c:2306:2: error: call to undeclared function 'arena_mas_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2306 |         arena_mas_init(&mas, mt, addr);
         |         ^
   lib/dynamic_debug.c:2310:9: error: call to undeclared function 'arena_mas_walk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2310 |                 val = arena_mas_walk(&mas);
         |                       ^
   lib/dynamic_debug.c:2310:7: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    2310 |                 val = arena_mas_walk(&mas);
         |                     ^ ~~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c:2321:16: error: call to undeclared function 'arena_mas_prev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2321 |         while ((val = arena_mas_prev(&mas, 0))) {
         |                       ^
   lib/dynamic_debug.c:2321:14: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    2321 |         while ((val = arena_mas_prev(&mas, 0))) {
         |                     ^ ~~~~~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c:2336:16: error: call to undeclared function 'arena_mas_next'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2336 |         while ((val = arena_mas_next(&mas, ULONG_MAX))) {
         |                       ^
   lib/dynamic_debug.c:2336:14: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion]
    2336 |         while ((val = arena_mas_next(&mas, ULONG_MAX))) {
         |                     ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c:2429:3: error: call to undeclared function 'arena___mt_destroy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2429 |                 arena___mt_destroy(&dd_modules_site_map.mt);
         |                 ^
   lib/dynamic_debug.c:2429:3: note: did you mean '__mt_destroy'?
   include/linux/maple_tree.h:391:6: note: '__mt_destroy' declared here
     391 | void __mt_destroy(struct maple_tree *mt);
         |      ^
   lib/dynamic_debug.c:2437:3: error: call to undeclared function 'arena___mt_destroy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2437 |                 arena___mt_destroy(&dd_builtin_site_map.mt);
         |                 ^
>> lib/dynamic_debug.c:2630:2: error: call to undeclared function 'arena_maple_tree_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2630 |         arena_maple_tree_init();
         |         ^
   lib/dynamic_debug.c:2630:2: note: did you mean 'maple_tree_init'?
   include/linux/maple_tree.h:576:6: note: 'maple_tree_init' declared here
     576 | void maple_tree_init(void);
         |      ^
   1 warning and 18 errors generated.


vim +/arena_maple_tree_init +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.