All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Jim Cromie" <jim.cromie@gmail.com>,
	" Łukasz Bartosik" <ukaszb@chromium.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jimc:dd-shrink-cached 62/64] lib/dynamic_debug.c:2146:2: error: call to undeclared function 'arena_mas_lock'; ISO C99 and later do not support implicit function declarations
Date: Wed, 19 Aug 2026 14:20:31 +0800	[thread overview]
Message-ID: <202608191428.AxPChBSW-lkp@intel.com> (raw)

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: i386-buildonly-randconfig-001-20260819 (https://download.01.org/0day-ci/archive/20260819/202608191428.AxPChBSW-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/202608191428.AxPChBSW-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/202608191428.AxPChBSW-lkp@intel.com/

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:384:5: note: 'mtree_store_range' declared here
     384 | 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:2146:2: error: call to undeclared function 'arena_mas_lock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2146 |         arena_mas_lock(&mas);
         |         ^
>> lib/dynamic_debug.c:2148:2: error: call to undeclared function 'arena_mas_erase'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2148 |         arena_mas_erase(&mas);
         |         ^
>> lib/dynamic_debug.c:2150:2: error: call to undeclared function 'arena_mas_unlock'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2150 |         arena_mas_unlock(&mas);
         |         ^
   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:394:6: note: '__mt_destroy' declared here
     394 | void __mt_destroy(struct maple_tree *mt);
         |      ^
   fatal error: too many errors emitted, stopping now [-ferror-limit=]
   1 warning and 20 errors generated.


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

                 reply	other threads:[~2026-08-19  6:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608191428.AxPChBSW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jim.cromie@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=ukaszb@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.