lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 28 Feb 2021 04:57:48 +0800
From:   kernel test robot <lkp@...el.com>
To:     Christophe Leroy <christophe.leroy@...roup.eu>
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
        linux-kernel@...r.kernel.org, Michael Ellerman <mpe@...erman.id.au>
Subject: drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration
 of function 'enable_kernel_fp'

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@...el.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@...ba.org>
:::::: CC: Paul Mackerras <paulus@...ba.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (50552 bytes)

Powered by blists - more mailing lists