From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [norov:trace_pritk3 3/5] include/linux/local_lock_internal.h:46:2: error: use of undeclared identifier '_THIS_IP_'
Date: Mon, 22 Jun 2026 19:57:15 +0800 [thread overview]
Message-ID: <202606221928.uiMi4NZP-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-22 11:57 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=202606221928.uiMi4NZP-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=yury.norov@gmail.com \
/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.