All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-shrink-6a5 24/51] lib/dynamic_debug.c:1094:7: error: call to undeclared function 'class_in_range'; ISO C99 and later do not support implicit function declarations
@ 2025-10-26  0:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-26  0:03 UTC (permalink / raw)
  To: Jim Cromie, Łukasz Bartosik; +Cc: oe-kbuild-all

tree:   https://github.com/jimc/linux.git dd-shrink-6a5
head:   a2f8b47e22fa6a1a9852e392166bc9adf45cc17d
commit: 0b97c67ff7508553279207f049005e69875b9d81 [24/51] dyndbg-API: replace DECLARE_DYNDBG_CLASSMAP
config: x86_64-randconfig-074-20251025 (https://download.01.org/0day-ci/archive/20251026/202510260709.sP8681DF-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251026/202510260709.sP8681DF-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/202510260709.sP8681DF-lkp@intel.com/

Note: the jimc/dd-shrink-6a5 HEAD a2f8b47e22fa6a1a9852e392166bc9adf45cc17d builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

>> lib/dynamic_debug.c:1094:7: error: call to undeclared function 'class_in_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1094 |                 if (class_in_range(dp->class_id, cli->map))
         |                     ^
   1 error generated.


vim +/class_in_range +1094 lib/dynamic_debug.c

  1082	
  1083	static const char *ddebug_class_name(struct _ddebug_info *di, struct _ddebug *dp)
  1084	{
  1085		struct _ddebug_class_map *map;
  1086		struct _ddebug_class_user *cli;
  1087		int i;
  1088	
  1089		for_subvec(i, map, di, maps)
  1090			if (ddebug_class_in_range(dp->class_id, map))
  1091				return map->class_names[dp->class_id - map->base];
  1092	
  1093		for_subvec(i, cli, di, users)
> 1094			if (class_in_range(dp->class_id, cli->map))
  1095				return cli->map->class_names[dp->class_id - cli->map->base];
  1096	
  1097		return NULL;
  1098	}
  1099	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-26  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-26  0:03 [jimc:dd-shrink-6a5 24/51] lib/dynamic_debug.c:1094:7: error: call to undeclared function 'class_in_range'; ISO C99 and later do not support implicit function declarations kernel test robot

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.