lkml.org 
[lkml]   [2021]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[tglx-devel:rtmutex 12/62] kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git rtmutex
head: 464d92f29d4fc8581adb0dc25bb8c1d108452fa6
commit: 62ee7142ca57390ba70945e6180e05f4fb1fc73b [12/62] rtmutex: Split out the inner parts of struct rtmutex
config: x86_64-randconfig-a003-20210727 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
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/tglx/devel.git/commit/?id=62ee7142ca57390ba70945e6180e05f4fb1fc73b
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 62ee7142ca57390ba70945e6180e05f4fb1fc73b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

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

>> kernel/locking/locktorture.c:468:8: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' [-Werror,-Wimplicit-function-declaration]
static DEFINE_RT_MUTEX(torture_rtmutex);
^
include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
^
include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
^
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
static DEFINE_RT_MUTEX(torture_rtmutex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
static DEFINE_RT_MUTEX(torture_rtmutex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: warning: suggest braces around initialization of subobject [-Wmissing-braces]
static DEFINE_RT_MUTEX(torture_rtmutex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/locking/locktorture.c:468:8: error: initializer element is not a compile-time constant
static DEFINE_RT_MUTEX(torture_rtmutex);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:81:30: note: expanded from macro 'DEFINE_RT_MUTEX'
struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/rtmutex.h:76:13: note: expanded from macro '__RT_MUTEX_INITIALIZER'
.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.


vim +/__RT_MUTEX_BASE_INITIALIZE +468 kernel/locking/locktorture.c

0186a6cbdc6287 Chris Wilson 2016-12-01 466
095777c417db14 Davidlohr Bueso 2015-07-22 467 #ifdef CONFIG_RT_MUTEXES
095777c417db14 Davidlohr Bueso 2015-07-22 @468 static DEFINE_RT_MUTEX(torture_rtmutex);
095777c417db14 Davidlohr Bueso 2015-07-22 469

:::::: The code at line 468 was first introduced by commit
:::::: 095777c417db142970adeb776fa0cb10810b8122 locktorture: Support rtmutex torturing

:::::: TO: Davidlohr Bueso <dave@stgolabs.net>
:::::: CC: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-27 22:42    [W:1.361 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site