* drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp'
@ 2021-02-27 20:57 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-27 20:57 UTC (permalink / raw)
To: Christophe Leroy
Cc: kbuild-all, clang-built-linux, linux-kernel, Michael Ellerman
[-- Attachment #1: Type: text/plain, Size: 6091 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5695e51619745d4fe3ec2506a2f0cd982c5e27a4
commit: 7d68c89169508064c460a1208f38ed0589d226fa powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x
date: 3 months ago
config: powerpc-randconfig-r021-20210228 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 83bc7815c4235786111aa2abf7193292e4a602f5)
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/torvalds/linux.git/commit/?id=7d68c89169508064c460a1208f38ed0589d226fa
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 7d68c89169508064c460a1208f38ed0589d226fa
# 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@intel.com>
All errors (new ones prefixed by >>):
>> drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp' [-Werror,-Wimplicit-function-declaration]
enable_kernel_fp();
^
1 error generated.
vim +/enable_kernel_fp +262 drivers/cpufreq/pmac32-cpufreq.c
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 229
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 230 /* Switch CPU speed under PMU control
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 231 */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 232 static int pmu_set_cpu_speed(int low_speed)
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 233 {
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 234 struct adb_request req;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 235 unsigned long save_l2cr;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 236 unsigned long save_l3cr;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 237 unsigned int pic_prio;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 238 unsigned long flags;
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 239
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 240 preempt_disable();
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 241
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 242 #ifdef DEBUG_FREQ
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 243 printk(KERN_DEBUG "HID1, before: %x\n", mfspr(SPRN_HID1));
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 244 #endif
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 245 pmu_suspend();
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 246
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 247 /* Disable all interrupt sources on openpic */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 248 pic_prio = mpic_cpu_get_priority();
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 249 mpic_cpu_set_priority(0xf);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 250
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 251 /* Make sure the decrementer won't interrupt us */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 252 asm volatile("mtdec %0" : : "r" (0x7fffffff));
80f7228b59e4bb arch/powerpc/platforms/powermac/cpufreq_32.c Adrian Bunk 2006-06-30 253 /* Make sure any pending DEC interrupt occurring while we did
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 254 * the above didn't re-enable the DEC */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 255 mb();
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 256 asm volatile("mtdec %0" : : "r" (0x7fffffff));
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 257
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 258 /* We can now disable MSR_EE */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 259 local_irq_save(flags);
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 260
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 261 /* Giveup the FPU & vec */
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 @262 enable_kernel_fp();
14cf11af6cf608 arch/powerpc/platforms/powermac/pmac_cpufreq.c Paul Mackerras 2005-09-26 263
:::::: The code at line 262 was first introduced by commit
:::::: 14cf11af6cf608eb8c23e989ddb17a715ddce109 powerpc: Merge enough to start building in arch/powerpc.
:::::: TO: Paul Mackerras <paulus@samba.org>
:::::: CC: Paul Mackerras <paulus@samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 50552 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-27 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 20:57 drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp' 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
Powered by JetHome