From: kernel test robot <lkp@intel.com>
To: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org,
Michael Ellerman <mpe@ellerman.id.au>
Subject: drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp'
Date: Sun, 28 Feb 2021 04:57:48 +0800 [thread overview]
Message-ID: <202102280443.20TMt3zn-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-02-27 20:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202102280443.20TMt3zn-lkp@intel.com \
--to=lkp@intel.com \
--cc=christophe.leroy@csgroup.eu \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpe@ellerman.id.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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