[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204031917.yHHLo75R-lkp@intel.com>
Date: Sun, 3 Apr 2022 19:33:28 +0800
From: kernel test robot <lkp@...el.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Michael Ellerman <mpe@...erman.id.au>
Subject: [linux-stable-rc:queue/5.10 3948/9999]
arch/powerpc/platforms/4xx/pci.c:47:19: error: unused function
'ppc440spe_revA'
Hi Nathan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.10
head: 852e92a491fd83515d5683537bfdb2d90d483344
commit: a024e88f8ab79a7b7e15337096d4f5f77edc6a49 [3948/9999] powerpc/barrier: Avoid collision with clang's __lwsync macro
config: powerpc-randconfig-c003-20220403 (https://download.01.org/0day-ci/archive/20220403/202204031917.yHHLo75R-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
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 powerpc 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=a024e88f8ab79a7b7e15337096d4f5f77edc6a49
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 queue/5.10
git checkout a024e88f8ab79a7b7e15337096d4f5f77edc6a49
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/platforms/4xx/pci.c:47:19: error: unused function 'ppc440spe_revA' [-Werror,-Wunused-function]
static inline int ppc440spe_revA(void)
^
1 error generated.
vim +/ppc440spe_revA +47 arch/powerpc/platforms/4xx/pci.c
a2d2e1ec07a809 arch/powerpc/sysdev/ppc4xx_pci.c Benjamin Herrenschmidt 2007-12-21 41
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge 2008-09-11 42 #define RES_TO_U32_LOW(val) \
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge 2008-09-11 43 ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_LOW(val) : (val))
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge 2008-09-11 44 #define RES_TO_U32_HIGH(val) \
8308c54d7e312f arch/powerpc/sysdev/ppc4xx_pci.c Jeremy Fitzhardinge 2008-09-11 45 ((sizeof(resource_size_t) > sizeof(u32)) ? U64_TO_U32_HIGH(val) : (0))
a2d2e1ec07a809 arch/powerpc/sysdev/ppc4xx_pci.c Benjamin Herrenschmidt 2007-12-21 46
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 @47 static inline int ppc440spe_revA(void)
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 48 {
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 49 /* Catch both 440SPe variants, with and without RAID6 support */
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 50 if ((mfspr(SPRN_PVR) & 0xffefffff) == 0x53421890)
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 51 return 1;
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 52 else
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 53 return 0;
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 54 }
accf5ef254b9dd arch/powerpc/sysdev/ppc4xx_pci.c Stefan Roese 2007-12-21 55
:::::: The code at line 47 was first introduced by commit
:::::: accf5ef254b9dd4d3b53040dd73d80875c2cd39b [POWERPC] 4xx: Add 440SPe revA runtime detection to PCIe
:::::: TO: Stefan Roese <sr@...x.de>
:::::: CC: Josh Boyer <jwboyer@...ux.vnet.ibm.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists