All of lore.kernel.org
 help / color / mirror / Atom feed
* [norov:trace_pritk3 3/5] include/linux/local_lock_internal.h:46:2: error: use of undeclared identifier '_THIS_IP_'
@ 2026-06-22 11:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-22 11:57 UTC (permalink / raw)
  To: Yury Norov; +Cc: oe-kbuild-all

tree:   https://github.com/norov/linux trace_pritk3
head:   269a48e0145577a55e41cad363ea0a8c7f8b71b6
commit: b2ec6f354aace55c19cf7223166e97a76fdea9df [3/5] kernel.h: drop trace_printk.h
config: i386-randconfig-002-20260622 (https://download.01.org/0day-ci/archive/20260622/202606221928.uiMi4NZP-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/20260622/202606221928.uiMi4NZP-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/202606221928.uiMi4NZP-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from lib/test_context-analysis.c:9:
   In file included from include/linux/local_lock.h:5:
>> include/linux/local_lock_internal.h:46:2: error: use of undeclared identifier '_THIS_IP_'
      46 |         lock_map_acquire(&l->dep_map);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:541:69: note: expanded from macro 'lock_map_acquire'
     541 | #define lock_map_acquire(l)                     lock_acquire_exclusive(l, 0, 0, NULL, _THIS_IP_)
         |                                                                                       ^~~~~~~~~
   In file included from lib/test_context-analysis.c:9:
   In file included from include/linux/local_lock.h:5:
   include/linux/local_lock_internal.h:53:2: error: use of undeclared identifier '_THIS_IP_'
      53 |         lock_map_acquire_try(&l->dep_map);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:542:73: note: expanded from macro 'lock_map_acquire_try'
     542 | #define lock_map_acquire_try(l)                 lock_acquire_exclusive(l, 0, 1, NULL, _THIS_IP_)
         |                                                                                       ^~~~~~~~~
   In file included from lib/test_context-analysis.c:9:
   In file included from include/linux/local_lock.h:5:
   include/linux/local_lock_internal.h:62:2: error: use of undeclared identifier '_THIS_IP_'
      62 |         lock_map_release(&l->dep_map);
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:545:47: note: expanded from macro 'lock_map_release'
     545 | #define lock_map_release(l)                     lock_release(l, _THIS_IP_)
         |                                                                 ^~~~~~~~~
   3 errors generated.


vim +/_THIS_IP_ +46 include/linux/local_lock_internal.h

0aaddfb0688250 Sebastian Andrzej Siewior 2025-02-21  31  
91710728d1725d Thomas Gleixner           2020-05-27  32  #ifdef CONFIG_DEBUG_LOCK_ALLOC
d8bbd97ad0b99a Thomas Gleixner           2021-08-15  33  # define LOCAL_LOCK_DEBUG_INIT(lockname)		\
91710728d1725d Thomas Gleixner           2020-05-27  34  	.dep_map = {					\
91710728d1725d Thomas Gleixner           2020-05-27  35  		.name = #lockname,			\
91710728d1725d Thomas Gleixner           2020-05-27  36  		.wait_type_inner = LD_WAIT_CONFIG,	\
dfd5e3f5fe27bd Peter Zijlstra            2020-12-09  37  		.lock_type = LD_LOCK_PERCPU,		\
d8bbd97ad0b99a Thomas Gleixner           2021-08-15  38  	},						\
d8bbd97ad0b99a Thomas Gleixner           2021-08-15  39  	.owner = NULL,
91710728d1725d Thomas Gleixner           2020-05-27  40  
51339d99c0131b Alexei Starovoitov        2025-04-02  41  # define LOCAL_TRYLOCK_DEBUG_INIT(lockname)		\
212b0f07cf0215 Alexei Starovoitov        2025-09-03  42  	LOCAL_LOCK_DEBUG_INIT(lockname)
51339d99c0131b Alexei Starovoitov        2025-04-02  43  
91710728d1725d Thomas Gleixner           2020-05-27  44  static inline void local_lock_acquire(local_lock_t *l)
91710728d1725d Thomas Gleixner           2020-05-27  45  {
91710728d1725d Thomas Gleixner           2020-05-27 @46  	lock_map_acquire(&l->dep_map);
91710728d1725d Thomas Gleixner           2020-05-27  47  	DEBUG_LOCKS_WARN_ON(l->owner);
91710728d1725d Thomas Gleixner           2020-05-27  48  	l->owner = current;
91710728d1725d Thomas Gleixner           2020-05-27  49  }
91710728d1725d Thomas Gleixner           2020-05-27  50  

:::::: The code at line 46 was first introduced by commit
:::::: 91710728d1725de51d06b40674abf6e860d592c7 locking: Introduce local_lock()

:::::: TO: Thomas Gleixner <tglx@linutronix.de>
:::::: CC: Ingo Molnar <mingo@kernel.org>

--
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:[~2026-06-22 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-22 11:57 [norov:trace_pritk3 3/5] include/linux/local_lock_internal.h:46:2: error: use of undeclared identifier '_THIS_IP_' 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.