LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [tglx-devel:rtmutex 12/62] include/linux/rtmutex.h:76:13: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE'
@ 2021-07-27 21:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-27 21:08 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel, Thomas Gleixner

[-- Attachment #1: Type: text/plain, Size: 4167 bytes --]

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: xtensa-randconfig-s032-20210727 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 10.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # 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=gcc-10.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=xtensa 

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 >>):

   In file included from kernel/locking/locktorture.c:25:
>> include/linux/rtmutex.h:76:13: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' [-Werror=implicit-function-declaration]
      76 |  .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: in expansion of macro '__RT_MUTEX_INITIALIZER'
      81 |  struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
         |                              ^~~~~~~~~~~~~~~~~~~~~~
   kernel/locking/locktorture.c:468:8: note: in expansion of macro 'DEFINE_RT_MUTEX'
     468 | static DEFINE_RT_MUTEX(torture_rtmutex);
         |        ^~~~~~~~~~~~~~~
>> include/linux/rtmutex.h:76:13: error: initializer element is not constant
      76 |  .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: in expansion of macro '__RT_MUTEX_INITIALIZER'
      81 |  struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
         |                              ^~~~~~~~~~~~~~~~~~~~~~
   kernel/locking/locktorture.c:468:8: note: in expansion of macro 'DEFINE_RT_MUTEX'
     468 | static DEFINE_RT_MUTEX(torture_rtmutex);
         |        ^~~~~~~~~~~~~~~
   include/linux/rtmutex.h:76:13: note: (near initialization for 'torture_rtmutex.rtmutex.wait_lock.raw_lock.slock')
      76 |  .rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex) \
         |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/rtmutex.h:81:30: note: in expansion of macro '__RT_MUTEX_INITIALIZER'
      81 |  struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
         |                              ^~~~~~~~~~~~~~~~~~~~~~
   kernel/locking/locktorture.c:468:8: note: in expansion of macro 'DEFINE_RT_MUTEX'
     468 | static DEFINE_RT_MUTEX(torture_rtmutex);
         |        ^~~~~~~~~~~~~~~
>> include/linux/rtmutex.h:75:1: warning: missing braces around initializer [-Wmissing-braces]
      75 | {         \
         | ^
   include/linux/rtmutex.h:81:30: note: in expansion of macro '__RT_MUTEX_INITIALIZER'
      81 |  struct rt_mutex mutexname = __RT_MUTEX_INITIALIZER(mutexname)
         |                              ^~~~~~~~~~~~~~~~~~~~~~
   kernel/locking/locktorture.c:468:8: note: in expansion of macro 'DEFINE_RT_MUTEX'
     468 | static DEFINE_RT_MUTEX(torture_rtmutex);
         |        ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/__RT_MUTEX_BASE_INITIALIZE +76 include/linux/rtmutex.h

    73	
    74	#define __RT_MUTEX_INITIALIZER(mutexname)				\
  > 75	{									\
  > 76		.rtmutex = __RT_MUTEX_BASE_INITIALIZE(mutexname.rtmutex)	\
    77		__DEP_MAP_RT_MUTEX_INITIALIZER(mutexname)			\
    78	}
    79	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29318 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-27 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 21:08 [tglx-devel:rtmutex 12/62] include/linux/rtmutex.h:76:13: error: implicit declaration of function '__RT_MUTEX_BASE_INITIALIZE' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).