All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jim Cromie <jim.cromie@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [jimc:dd-classmaps2-on-lukas-v3.1 40/55] lib/dynamic_debug.c:1692:35: error: 'struct ddebug_table' has no member named 'classes'
Date: Sun, 31 Dec 2023 09:34:23 +0800	[thread overview]
Message-ID: <202312310941.CycNxIMs-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-12-31  1:38 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=202312310941.CycNxIMs-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jim.cromie@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.