tree:
https://github.com/intel/linux-intel-lts.git 5.4/preempt-rt
head: bb4ae19664a898236b2af46b45a6a0fea23ab20d
commit: 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f [3/13] Merge remote-tracking branch
'origin/5.4/yocto' into lts2019/yocto-rt
config: powerpc64-randconfig-r016-20210610 (attached as .config)
compiler: powerpc64le-linux-gcc (GCC) 9.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://github.com/intel/linux-intel-lts/commit/7bc82c4f1b47c643468c3be1d...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/preempt-rt
git checkout 7bc82c4f1b47c643468c3be1d9e0309d7c3e9b3f
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/powerpc/platforms/pseries/iommu.c:27:
> arch/powerpc/platforms/pseries/iommu.c:181:30: error:
'tcp_page_lock' defined but not used [-Werror=unused-const-variable=]
181 | static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
| ^~~~~~~~~~~~~
include/linux/locallock.h:244:60: note: in definition of macro
'DEFINE_LOCAL_IRQ_LOCK'
244 | #define DEFINE_LOCAL_IRQ_LOCK(lvar) __typeof__(const int) lvar
| ^~~~
cc1: all warnings being treated as errors
vim +/tcp_page_lock +181 arch/powerpc/platforms/pseries/iommu.c
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16
179
df015604cf5bb0 arch/powerpc/platforms/pseries/iommu.c Anton Blanchard 2013-10-17
180 static DEFINE_PER_CPU(__be64 *, tce_page);
3ab3ff1d185c02 arch/powerpc/platforms/pseries/iommu.c Sebastian Andrzej Siewior 2019-03-26
@181 static DEFINE_LOCAL_IRQ_LOCK(tcp_page_lock);
^1da177e4c3f41 arch/ppc64/kernel/pSeries_iommu.c Linus Torvalds 2005-04-16
182
:::::: The code at line 181 was first introduced by commit
:::::: 3ab3ff1d185c02c51cfb22a22476d8c3791c8810 powerpc/pseries/iommu: Use a locallock
instead local_irq_save()
:::::: TO: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org