[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202308121120.u2d3YPVt-lkp@intel.com>
Date: Sat, 12 Aug 2023 11:59:55 +0800
From: kernel test robot <lkp@...el.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Michael Ellerman <mpe@...erman.id.au>,
Nick Desaulniers <ndesaulniers@...gle.com>
Subject: arch/powerpc/kernel/time.c:169:29: error: unused function
'read_spurr'
Hi Nathan,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 190bf7b14b0cf3df19c059061be032bd8994a597
commit: 015d98149b326e0f1f02e44413112ca8b4330543 powerpc/barrier: Avoid collision with clang's __lwsync macro
date: 2 years, 2 months ago
config: powerpc-randconfig-r011-20230812 (https://download.01.org/0day-ci/archive/20230812/202308121120.u2d3YPVt-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308121120.u2d3YPVt-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308121120.u2d3YPVt-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/powerpc/kernel/time.c:169:29: error: unused function 'read_spurr' [-Werror,-Wunused-function]
169 | static inline unsigned long read_spurr(unsigned long tb)
| ^
1 error generated.
--
>> arch/powerpc/sysdev/grackle.c:26:20: error: unused function 'grackle_set_stg' [-Werror,-Wunused-function]
26 | static inline void grackle_set_stg(struct pci_controller* bp, int enable)
| ^
1 error generated.
vim +/read_spurr +169 arch/powerpc/kernel/time.c
c6622f63db86fc Paul Mackerras 2006-02-24 164
c6622f63db86fc Paul Mackerras 2006-02-24 165 /*
cf9efce0ce3136 Paul Mackerras 2010-08-26 166 * Read the SPURR on systems that have it, otherwise the PURR,
cf9efce0ce3136 Paul Mackerras 2010-08-26 167 * or if that doesn't exist return the timebase value passed in.
c6622f63db86fc Paul Mackerras 2006-02-24 168 */
abcff86df2d2ec Christophe Leroy 2018-08-02 @169 static inline unsigned long read_spurr(unsigned long tb)
c6622f63db86fc Paul Mackerras 2006-02-24 170 {
cf9efce0ce3136 Paul Mackerras 2010-08-26 171 if (cpu_has_feature(CPU_FTR_SPURR))
cf9efce0ce3136 Paul Mackerras 2010-08-26 172 return mfspr(SPRN_SPURR);
c6622f63db86fc Paul Mackerras 2006-02-24 173 if (cpu_has_feature(CPU_FTR_PURR))
c6622f63db86fc Paul Mackerras 2006-02-24 174 return mfspr(SPRN_PURR);
cf9efce0ce3136 Paul Mackerras 2010-08-26 175 return tb;
c6622f63db86fc Paul Mackerras 2006-02-24 176 }
c6622f63db86fc Paul Mackerras 2006-02-24 177
:::::: The code at line 169 was first introduced by commit
:::::: abcff86df2d2ec0a0ca9470fa5d2a184af18928a powerpc/time: Only set CONFIG_ARCH_HAS_SCALED_CPUTIME on PPC64
:::::: TO: Christophe Leroy <christophe.leroy@....fr>
:::::: CC: Michael Ellerman <mpe@...erman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists