[jimc:dd-shrink-cached 62/64] lib/dynamic_debug.c:2146:9: error: implicit declaration of function 'arena_mas_lock'

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: 9ddeda37ca2aba5800b9bbc30e16a1db1ce44e5c [62/64] lib/arena_maple_tree: Specialized arena-backed maple tree
config: csky-randconfig-002-20260819 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: csky-linux-gcc (GCC) 11.5.0
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' [-Werror=implicit-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' [-Werror=implicit-function-declaration]
     409 |         val = arena_mas_walk(&mas);
         |               ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:409:13: warning: 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' [-Werror=implicit-function-declaration]
     415 |                         while ((val = arena_mas_prev(&mas, 0))) {
         |                                       ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:415:37: warning: 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'? [-Werror=implicit-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_module_sites_clear':
>> lib/dynamic_debug.c:2146:9: error: implicit declaration of function 'arena_mas_lock' [-Werror=implicit-function-declaration]
    2146 |         arena_mas_lock(&mas);
         |         ^~~~~~~~~~~~~~
>> lib/dynamic_debug.c:2148:9: error: implicit declaration of function 'arena_mas_erase' [-Werror=implicit-function-declaration]
    2148 |         arena_mas_erase(&mas);
         |         ^~~~~~~~~~~~~~~
>> lib/dynamic_debug.c:2150:9: error: implicit declaration of function 'arena_mas_unlock' [-Werror=implicit-function-declaration]
    2150 |         arena_mas_unlock(&mas);
         |         ^~~~~~~~~~~~~~~~
   lib/dynamic_debug.c: In function 'ddebug_resolve_range':
   lib/dynamic_debug.c:2310:21: warning: 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: warning: 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' [-Werror=implicit-function-declaration]
    2336 |         while ((val = arena_mas_next(&mas, ULONG_MAX))) {
         |                       ^~~~~~~~~~~~~~
   lib/dynamic_debug.c:2336:21: warning: 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' [-Werror=implicit-function-declaration]
    2429 |                 arena___mt_destroy(&dd_modules_site_map.mt);
         |                 ^~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/arena_mas_lock +2146 lib/dynamic_debug.c

  2131	
  2132	/*
  2133	 * Called in response to a module being unloaded.  Removes
  2134	 * any ddebug_table's which point at the module.
  2135	 */
  2136	static void ddebug_module_sites_clear(struct ddebug_table *dt)
  2137	{
  2138		unsigned long start = (unsigned long) dt->info.descs.start;
  2139		unsigned long end = (unsigned long) &dt->info.descs.start[dt->info.descs.len - 1];
  2140	
  2141		MA_STATE(mas, &dd_modules_site_map.mt, start - DD_KEY_MOD_OFFSET, end);
  2142	
  2143		v2pr_info("clearing %3d debugs of removed module %s\n",
  2144			  dt->info.descs.len, dt->info.mod_name);
  2145	
> 2146		arena_mas_lock(&mas);
  2147		current_ddebug_write_tree = &dd_modules_site_map.mt;
> 2148		arena_mas_erase(&mas);
  2149		current_ddebug_write_tree = NULL;
> 2150		arena_mas_unlock(&mas);
  2151	
  2152		if (dt->compressed_sites) {
  2153			vfree(dt->compressed_sites);
  2154			dt->compressed_sites = NULL;
  2155		}
  2156	}
  2157	

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