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:folio-pool-v2-lockdep 16/21] kernel/locking/lockdep_internals.h:248:23: error: 'lock_classes' undeclared; did you mean 'lock_class'?
Date: Tue, 18 Aug 2026 12:12:28 +0800	[thread overview]
Message-ID: <202608181124.s7vzTnUs-lkp@intel.com> (raw)

tree:   https://github.com/jimc/linux.git folio-pool-v2-lockdep
head:   e77ee8289ea0755b0ee299348504d4568f942d71
commit: 9e99b37a40c36adbf813b758582f9b57aa5e41e3 [16/21] locking/lockdep: Migrate lock_classes array to 2-level dynamic folio chunks
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260818/202608181124.s7vzTnUs-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260818/202608181124.s7vzTnUs-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/202608181124.s7vzTnUs-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

   In file included from kernel/locking/lockdep.c:84:
   kernel/locking/lockdep_internals.h: In function 'debug_class_ops_inc':
>> kernel/locking/lockdep_internals.h:248:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'?
     248 |         idx = class - lock_classes;
         |                       ^~~~~~~~~~~~
         |                       lock_class
   kernel/locking/lockdep_internals.h:248:23: note: each undeclared identifier is reported only once for each function it appears in
   kernel/locking/lockdep_internals.h: In function 'debug_class_ops_read':
   kernel/locking/lockdep_internals.h:257:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'?
     257 |         idx = class - lock_classes;
         |                       ^~~~~~~~~~~~
         |                       lock_class
   kernel/locking/lockdep.c: At top level:
>> kernel/locking/lockdep.c:1188:13: warning: 'in_any_zapped_class_list' defined but not used [-Wunused-function]
    1188 | static bool in_any_zapped_class_list(struct lock_class *class)
         |             ^~~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from kernel/locking/lockdep_proc.c:25:
   kernel/locking/lockdep_internals.h: In function 'debug_class_ops_inc':
>> kernel/locking/lockdep_internals.h:248:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'?
     248 |         idx = class - lock_classes;
         |                       ^~~~~~~~~~~~
         |                       lock_class
   kernel/locking/lockdep_internals.h:248:23: note: each undeclared identifier is reported only once for each function it appears in
   kernel/locking/lockdep_internals.h: In function 'debug_class_ops_read':
   kernel/locking/lockdep_internals.h:257:23: error: 'lock_classes' undeclared (first use in this function); did you mean 'lock_class'?
     257 |         idx = class - lock_classes;
         |                       ^~~~~~~~~~~~
         |                       lock_class


vim +248 kernel/locking/lockdep_internals.h

8ca2b56cd7da98 Waiman Long 2018-10-03  243  
8ca2b56cd7da98 Waiman Long 2018-10-03  244  static inline void debug_class_ops_inc(struct lock_class *class)
8ca2b56cd7da98 Waiman Long 2018-10-03  245  {
8ca2b56cd7da98 Waiman Long 2018-10-03  246  	int idx;
8ca2b56cd7da98 Waiman Long 2018-10-03  247  
8ca2b56cd7da98 Waiman Long 2018-10-03 @248  	idx = class - lock_classes;
8ca2b56cd7da98 Waiman Long 2018-10-03  249  	__debug_atomic_inc(lock_class_ops[idx]);
8ca2b56cd7da98 Waiman Long 2018-10-03  250  }
8ca2b56cd7da98 Waiman Long 2018-10-03  251  

:::::: The code at line 248 was first introduced by commit
:::::: 8ca2b56cd7da98fc8f8d787bb706b9d6c8674a3b locking/lockdep: Make class->ops a percpu counter and move it under CONFIG_DEBUG_LOCKDEP=y

:::::: TO: Waiman Long <longman@redhat.com>
:::::: CC: Ingo Molnar <mingo@kernel.org>

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

                 reply	other threads:[~2026-08-18  4:13 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=202608181124.s7vzTnUs-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.