[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107280310.hk6Ei7bo-lkp@intel.com>
Date: Wed, 28 Jul 2021 03:44:18 +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: warning:
excess elements in struct initializer
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@...el.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
Download attachment ".config.gz" of type "application/gzip" (27379 bytes)
Powered by blists - more mailing lists