[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107082354.TMjsPx3Y-lkp@intel.com>
Date: Thu, 8 Jul 2021 23:14:01 +0800
From: kernel test robot <lkp@...el.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: clang-built-linux@...glegroups.com, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [linux-rt-devel:linux-5.13.y-rt-rebase 95/222]
kernel/locking/rtmutex_api.c:491: warning: expecting prototype for
rwsem_rt_mutex_try_lock_nolockdep(). Prototype was for
rwsem_rt_mutex_trylock() instead
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.13.y-rt-rebase
head: 7e175e6b59975c8901ad370f7818937f68de45c1
commit: e03cbdcf154eddbc014705b6e2ebacd755d6ab39 [95/222] locking/rtmutex: Provide lockdep less variants of rtmutex interfaces
config: x86_64-randconfig-a015-20210707 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=e03cbdcf154eddbc014705b6e2ebacd755d6ab39
git remote add linux-rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags linux-rt-devel linux-5.13.y-rt-rebase
git checkout e03cbdcf154eddbc014705b6e2ebacd755d6ab39
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/locking/ kernel/rcu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
>> kernel/locking/rtmutex_api.c:491: warning: expecting prototype for rwsem_rt_mutex_try_lock_nolockdep(). Prototype was for rwsem_rt_mutex_trylock() instead
vim +491 kernel/locking/rtmutex_api.c
481
482 /**
483 * rwsem_rt_mutex_try_lock_nolockdep - Try to lock a rt_mutex
484 * @lock: The rt_mutex to be locked
485 *
486 * The function does no lockdep operations on @lock. The lockdep state
487 * changes have to be done on the callsite related to the locking primitive
488 * which embeds the rtmutex. Otherwise lockdep has double tracking.
489 */
490 int __sched rwsem_rt_mutex_trylock(struct rt_mutex *lock)
> 491 {
492 if (IS_ENABLED(CONFIG_DEBUG_RT_MUTEXES) &&
493 WARN_ON_ONCE(in_nmi() | in_hardirq()))
494 return 0;
495
496 if (likely(rt_mutex_cmpxchg_acquire(lock, NULL, current)))
497 return 1;
498
499 return rt_mutex_slowtrylock(lock);
500 }
501
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (51460 bytes)
Powered by blists - more mailing lists