tree:
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head: 238baaf7afb02f83cf7f455b92b2c6ed961d43cd
commit: e94c1ba2ec1dc10b7f54dfa6163a5ca4fdd3655d [12/14] locking/rtmutex: Consolidate the
fast/slowpath invocation
config: x86_64-randconfig-s021-20210323 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-277-gc089cd2d-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git/commit/?id...
git remote add tglx-devel
https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git
git fetch --no-tags tglx-devel rtmutex
git checkout e94c1ba2ec1dc10b7f54dfa6163a5ca4fdd3655d
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/locking/rtmutex.c: In function 'rt_mutex_lock_nested':
> kernel/locking/rtmutex.c:1410:2: error: too few arguments to
function '__rt_mutex_lock'
1410 | __rt_mutex_lock(lock);
| ^~~~~~~~~~~~~~~
kernel/locking/rtmutex.c:1384:28: note: declared here
1384 | static __always_inline int __rt_mutex_lock(struct rt_mutex *lock, long state)
| ^~~~~~~~~~~~~~~
vim +/__rt_mutex_lock +1410 kernel/locking/rtmutex.c
1399
1400 #ifdef CONFIG_DEBUG_LOCK_ALLOC
1401 /**
1402 * rt_mutex_lock_nested - lock a rt_mutex
1403 *
1404 * @lock: the rt_mutex to be locked
1405 * @subclass: the lockdep subclass
1406 */
1407 void __sched rt_mutex_lock_nested(struct rt_mutex *lock, unsigned int subclass)
1408 {
1409 mutex_acquire(&lock->dep_map, subclass, 0, _RET_IP_);
1410 __rt_mutex_lock(lock);
1411 }
1412 EXPORT_SYMBOL_GPL(rt_mutex_lock_nested);
1413
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org