* arch/powerpc/kernel/time.c:169:29: error: unused function 'read_spurr'
@ 2023-08-12 3:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-12 3:59 UTC (permalink / raw)
To: Nathan Chancellor
Cc: llvm, oe-kbuild-all, linux-kernel, Michael Ellerman, Nick Desaulniers
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@intel.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@c-s.fr>
:::::: CC: Michael Ellerman <mpe@ellerman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-12 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12 3:59 arch/powerpc/kernel/time.c:169:29: error: unused function 'read_spurr' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®