LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [tglx-devel:rtmutex 12/62] include/linux/rtmutex.h:76:13: warning: excess elements in struct initializer
@ 2021-07-27 19:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-27 19:44 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: kbuild-all, linux-kernel, Thomas Gleixner
[-- Attachment #1: Type: text/plain, Size: 3563 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: m68k-buildonly-randconfig-r003-20210727 (attached as .config)
compiler: m68k-linux-gcc (GCC) 10.3.0
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
# 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
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash kernel/locking/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All 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: warning: excess elements in struct initializer
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')
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);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +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: 27379 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-27 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 19:44 [tglx-devel:rtmutex 12/62] include/linux/rtmutex.h:76:13: warning: excess elements in struct initializer 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).