[linux-stable-rc:linux-5.4.y 430/484] arch/powerpc/sysdev/fsl_msi.c:574:37: error: unused variable 'vmpic_msi_feature'

From: kernel test robot
Date: Fri Aug 27 2021 - 05:17:56 EST

tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-5.4.y
head: b1278c4a808e60c56e9e003643698ee5d571b074
commit: a5cd290599168960bf27def8fa405a0614e3cfd4 [430/484] powerpc/barrier: Avoid collision with clang's __lwsync macro
config: powerpc64-randconfig-r001-20210827 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1076082a0d97bd5c16a25ee7cf3dbb6ee4b5a9fe)
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
# install powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git/commit/?id=a5cd290599168960bf27def8fa405a0614e3cfd4
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-5.4.y
git checkout a5cd290599168960bf27def8fa405a0614e3cfd4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> arch/powerpc/sysdev/fsl_msi.c:574:37: error: unused variable 'vmpic_msi_feature' [-Werror,-Wunused-const-variable]
static const struct fsl_msi_feature vmpic_msi_feature = {
1 error generated.

vim +/vmpic_msi_feature +574 arch/powerpc/sysdev/fsl_msi.c

34e36c1541fe70 Jason Jin 2008-05-23 573
446bc1ffe4f2ca Timur Tabi 2011-12-13 @574 static const struct fsl_msi_feature vmpic_msi_feature = {
446bc1ffe4f2ca Timur Tabi 2011-12-13 575 .fsl_pic_ip = FSL_PIC_IP_VMPIC,
446bc1ffe4f2ca Timur Tabi 2011-12-13 576 .msiir_offset = 0,
446bc1ffe4f2ca Timur Tabi 2011-12-13 577 };
446bc1ffe4f2ca Timur Tabi 2011-12-13 578

:::::: The code at line 574 was first introduced by commit
:::::: 446bc1ffe4f2cac228909fe0ac48884d12700d81 powerpc/fsl: add MSI support for the Freescale hypervisor

:::::: TO: Timur Tabi <timur@xxxxxxxxxxxxx>
:::::: CC: Kumar Gala <galak@xxxxxxxxxxxxxxxxxxx>

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip