All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-classmaps2-on-lukas-v3.1 40/55] lib/dynamic_debug.c:1692:35: error: 'struct ddebug_table' has no member named 'classes'
@ 2023-12-31  1:34 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-31  1:34 UTC (permalink / raw)
  To: Jim Cromie; +Cc: oe-kbuild-all

Hi Jim,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://github.com/jimc/linux.git dd-classmaps2-on-lukas-v3.1
head:   4a9d672e048057e464e5bf65816cb57dd078fd62
commit: 71a33ce8ac4d6b9f6b675d5ac04a8b2dcd2e7747 [40/55] dyndbg: tighten ddebug_class_name() 1st arg type
config: x86_64-randconfig-003-20231230 (https://download.01.org/0day-ci/archive/20231231/202312310941.CycNxIMs-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231231/202312310941.CycNxIMs-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/202312310941.CycNxIMs-lkp@intel.com/

Note: the jimc/dd-classmaps2-on-lukas-v3.1 HEAD 4a9d672e048057e464e5bf65816cb57dd078fd62 builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   lib/dynamic_debug.c:621:7: warning: no previous prototype for 'skip_spaces_and_coma' [-Wmissing-prototypes]
     621 | char *skip_spaces_and_coma(const char *str)
         |       ^~~~~~~~~~~~~~~~~~~~
   lib/dynamic_debug.c: In function 'ddebug_class_name':
>> lib/dynamic_debug.c:1692:35: error: 'struct ddebug_table' has no member named 'classes'
    1692 |  struct ddebug_class_map *map = dt->classes;
         |                                   ^~
>> lib/dynamic_debug.c:1695:20: error: 'struct ddebug_table' has no member named 'num_classes'
    1695 |  for (i = 0; i < dt->num_classes; i++, map++)
         |                    ^~


vim +1692 lib/dynamic_debug.c

  1686	
  1687	#define class_in_range(class_id, map)					\
  1688		(class_id >= map->base && class_id < map->base + map->length)
  1689	
  1690	static const char *ddebug_class_name(struct ddebug_table *dt, struct _ddebug *dp)
  1691	{
> 1692		struct ddebug_class_map *map = dt->classes;
  1693		int i;
  1694	
> 1695		for (i = 0; i < dt->num_classes; i++, map++)
  1696			if (class_in_range(dp->class_id, map))
  1697				return map->class_names[dp->class_id - map->base];
  1698	
  1699		return NULL;
  1700	}
  1701	

-- 
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:[~2023-12-31  1:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-31  1:34 [jimc:dd-classmaps2-on-lukas-v3.1 40/55] lib/dynamic_debug.c:1692:35: error: 'struct ddebug_table' has no member named 'classes' 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.