lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107280522.30ixxqi0-lkp@intel.com>
Date:   Wed, 28 Jul 2021 05:08:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Peter Zijlstra <peterz@...radead.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Thomas Gleixner <tglx@...utronix.de>
Subject: [tglx-devel:rtmutex 12/62] include/linux/rtmutex.h:76:13: 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: 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@...el.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

Download attachment ".config.gz" of type "application/gzip" (29318 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ