All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp'
@ 2021-10-08  9:19 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-08  9:19 UTC (permalink / raw)
  To: Christophe Leroy; +Cc: kbuild-all, linux-kernel, Michael Ellerman

[-- Attachment #1: Type: text/plain, Size: 6395 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1da38549dd64c7f5dd22427f12dfa8db3d8a722b
commit: 7d68c89169508064c460a1208f38ed0589d226fa powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x
date:   10 months ago
config: powerpc64-randconfig-r013-20211008 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
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
        # 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=gcc-11.2.0 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 >>):

   arch/powerpc/platforms/83xx/suspend.c: In function 'mpc83xx_suspend_enter':
>> arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp' [-Werror=implicit-function-declaration]
     210 |                 enable_kernel_fp();
         |                 ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/enable_kernel_fp +210 arch/powerpc/platforms/83xx/suspend.c

87faaabb09d0802 Anton Vorontsov 2009-12-10  173  
d49747bdfb2ddeb Scott Wood      2007-10-09  174  static int mpc83xx_suspend_enter(suspend_state_t state)
d49747bdfb2ddeb Scott Wood      2007-10-09  175  {
d49747bdfb2ddeb Scott Wood      2007-10-09  176  	int ret = -EAGAIN;
d49747bdfb2ddeb Scott Wood      2007-10-09  177  
d49747bdfb2ddeb Scott Wood      2007-10-09  178  	/* Don't go to sleep if there's a race where pci_pm_state changes
d49747bdfb2ddeb Scott Wood      2007-10-09  179  	 * between the agent thread checking it and the PM code disabling
d49747bdfb2ddeb Scott Wood      2007-10-09  180  	 * interrupts.
d49747bdfb2ddeb Scott Wood      2007-10-09  181  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  182  	if (wake_from_pci) {
d49747bdfb2ddeb Scott Wood      2007-10-09  183  		if (pci_pm_state != (deep_sleeping ? 3 : 2))
d49747bdfb2ddeb Scott Wood      2007-10-09  184  			goto out;
d49747bdfb2ddeb Scott Wood      2007-10-09  185  
d49747bdfb2ddeb Scott Wood      2007-10-09  186  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  187  		         in_be32(&pmc_regs->config1) | PMCCR1_PME_EN);
d49747bdfb2ddeb Scott Wood      2007-10-09  188  	}
d49747bdfb2ddeb Scott Wood      2007-10-09  189  
d49747bdfb2ddeb Scott Wood      2007-10-09  190  	/* Put the system into low-power mode and the RAM
d49747bdfb2ddeb Scott Wood      2007-10-09  191  	 * into self-refresh mode once the core goes to
d49747bdfb2ddeb Scott Wood      2007-10-09  192  	 * sleep.
d49747bdfb2ddeb Scott Wood      2007-10-09  193  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  194  
d49747bdfb2ddeb Scott Wood      2007-10-09  195  	out_be32(&pmc_regs->config, PMCCR_SLPEN | PMCCR_DLPEN);
d49747bdfb2ddeb Scott Wood      2007-10-09  196  
d49747bdfb2ddeb Scott Wood      2007-10-09  197  	/* If it has deep sleep (i.e. it's an 831x or compatible),
d49747bdfb2ddeb Scott Wood      2007-10-09  198  	 * disable power to the core upon entering sleep mode.  This will
d49747bdfb2ddeb Scott Wood      2007-10-09  199  	 * require going through the boot firmware upon a wakeup event.
d49747bdfb2ddeb Scott Wood      2007-10-09  200  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  201  
d49747bdfb2ddeb Scott Wood      2007-10-09  202  	if (deep_sleeping) {
87faaabb09d0802 Anton Vorontsov 2009-12-10  203  		mpc83xx_suspend_save_regs();
87faaabb09d0802 Anton Vorontsov 2009-12-10  204  
d49747bdfb2ddeb Scott Wood      2007-10-09  205  		out_be32(&pmc_regs->mask, PMCER_ALL);
d49747bdfb2ddeb Scott Wood      2007-10-09  206  
d49747bdfb2ddeb Scott Wood      2007-10-09  207  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  208  		         in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF);
d49747bdfb2ddeb Scott Wood      2007-10-09  209  
d49747bdfb2ddeb Scott Wood      2007-10-09 @210  		enable_kernel_fp();
d49747bdfb2ddeb Scott Wood      2007-10-09  211  
d49747bdfb2ddeb Scott Wood      2007-10-09  212  		mpc83xx_enter_deep_sleep(immrbase);
d49747bdfb2ddeb Scott Wood      2007-10-09  213  
d49747bdfb2ddeb Scott Wood      2007-10-09  214  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  215  		         in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF);
d49747bdfb2ddeb Scott Wood      2007-10-09  216  
d49747bdfb2ddeb Scott Wood      2007-10-09  217  		out_be32(&pmc_regs->mask, PMCER_PMCI);
87faaabb09d0802 Anton Vorontsov 2009-12-10  218  
87faaabb09d0802 Anton Vorontsov 2009-12-10  219  		mpc83xx_suspend_restore_regs();
d49747bdfb2ddeb Scott Wood      2007-10-09  220  	} else {
d49747bdfb2ddeb Scott Wood      2007-10-09  221  		out_be32(&pmc_regs->mask, PMCER_PMCI);
d49747bdfb2ddeb Scott Wood      2007-10-09  222  
d49747bdfb2ddeb Scott Wood      2007-10-09  223  		mpc6xx_enter_standby();
d49747bdfb2ddeb Scott Wood      2007-10-09  224  	}
d49747bdfb2ddeb Scott Wood      2007-10-09  225  
d49747bdfb2ddeb Scott Wood      2007-10-09  226  	ret = 0;
d49747bdfb2ddeb Scott Wood      2007-10-09  227  
d49747bdfb2ddeb Scott Wood      2007-10-09  228  out:
d49747bdfb2ddeb Scott Wood      2007-10-09  229  	out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  230  	         in_be32(&pmc_regs->config1) & ~PMCCR1_PME_EN);
d49747bdfb2ddeb Scott Wood      2007-10-09  231  
d49747bdfb2ddeb Scott Wood      2007-10-09  232  	return ret;
d49747bdfb2ddeb Scott Wood      2007-10-09  233  }
d49747bdfb2ddeb Scott Wood      2007-10-09  234  

:::::: The code at line 210 was first introduced by commit
:::::: d49747bdfb2ddebea24d1580da55b79d093d48a9 powerpc/mpc83xx: Power Management support

:::::: TO: Scott Wood <scottwood@freescale.com>
:::::: CC: Kumar Gala <galak@kernel.crashing.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: 40279 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp'
@ 2021-10-08  9:19 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-08  9:19 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 6499 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1da38549dd64c7f5dd22427f12dfa8db3d8a722b
commit: 7d68c89169508064c460a1208f38ed0589d226fa powerpc/32s: Allow deselecting CONFIG_PPC_FPU on mpc832x
date:   10 months ago
config: powerpc64-randconfig-r013-20211008 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.0
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
        # 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=gcc-11.2.0 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 >>):

   arch/powerpc/platforms/83xx/suspend.c: In function 'mpc83xx_suspend_enter':
>> arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp' [-Werror=implicit-function-declaration]
     210 |                 enable_kernel_fp();
         |                 ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/enable_kernel_fp +210 arch/powerpc/platforms/83xx/suspend.c

87faaabb09d0802 Anton Vorontsov 2009-12-10  173  
d49747bdfb2ddeb Scott Wood      2007-10-09  174  static int mpc83xx_suspend_enter(suspend_state_t state)
d49747bdfb2ddeb Scott Wood      2007-10-09  175  {
d49747bdfb2ddeb Scott Wood      2007-10-09  176  	int ret = -EAGAIN;
d49747bdfb2ddeb Scott Wood      2007-10-09  177  
d49747bdfb2ddeb Scott Wood      2007-10-09  178  	/* Don't go to sleep if there's a race where pci_pm_state changes
d49747bdfb2ddeb Scott Wood      2007-10-09  179  	 * between the agent thread checking it and the PM code disabling
d49747bdfb2ddeb Scott Wood      2007-10-09  180  	 * interrupts.
d49747bdfb2ddeb Scott Wood      2007-10-09  181  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  182  	if (wake_from_pci) {
d49747bdfb2ddeb Scott Wood      2007-10-09  183  		if (pci_pm_state != (deep_sleeping ? 3 : 2))
d49747bdfb2ddeb Scott Wood      2007-10-09  184  			goto out;
d49747bdfb2ddeb Scott Wood      2007-10-09  185  
d49747bdfb2ddeb Scott Wood      2007-10-09  186  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  187  		         in_be32(&pmc_regs->config1) | PMCCR1_PME_EN);
d49747bdfb2ddeb Scott Wood      2007-10-09  188  	}
d49747bdfb2ddeb Scott Wood      2007-10-09  189  
d49747bdfb2ddeb Scott Wood      2007-10-09  190  	/* Put the system into low-power mode and the RAM
d49747bdfb2ddeb Scott Wood      2007-10-09  191  	 * into self-refresh mode once the core goes to
d49747bdfb2ddeb Scott Wood      2007-10-09  192  	 * sleep.
d49747bdfb2ddeb Scott Wood      2007-10-09  193  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  194  
d49747bdfb2ddeb Scott Wood      2007-10-09  195  	out_be32(&pmc_regs->config, PMCCR_SLPEN | PMCCR_DLPEN);
d49747bdfb2ddeb Scott Wood      2007-10-09  196  
d49747bdfb2ddeb Scott Wood      2007-10-09  197  	/* If it has deep sleep (i.e. it's an 831x or compatible),
d49747bdfb2ddeb Scott Wood      2007-10-09  198  	 * disable power to the core upon entering sleep mode.  This will
d49747bdfb2ddeb Scott Wood      2007-10-09  199  	 * require going through the boot firmware upon a wakeup event.
d49747bdfb2ddeb Scott Wood      2007-10-09  200  	 */
d49747bdfb2ddeb Scott Wood      2007-10-09  201  
d49747bdfb2ddeb Scott Wood      2007-10-09  202  	if (deep_sleeping) {
87faaabb09d0802 Anton Vorontsov 2009-12-10  203  		mpc83xx_suspend_save_regs();
87faaabb09d0802 Anton Vorontsov 2009-12-10  204  
d49747bdfb2ddeb Scott Wood      2007-10-09  205  		out_be32(&pmc_regs->mask, PMCER_ALL);
d49747bdfb2ddeb Scott Wood      2007-10-09  206  
d49747bdfb2ddeb Scott Wood      2007-10-09  207  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  208  		         in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF);
d49747bdfb2ddeb Scott Wood      2007-10-09  209  
d49747bdfb2ddeb Scott Wood      2007-10-09 @210  		enable_kernel_fp();
d49747bdfb2ddeb Scott Wood      2007-10-09  211  
d49747bdfb2ddeb Scott Wood      2007-10-09  212  		mpc83xx_enter_deep_sleep(immrbase);
d49747bdfb2ddeb Scott Wood      2007-10-09  213  
d49747bdfb2ddeb Scott Wood      2007-10-09  214  		out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  215  		         in_be32(&pmc_regs->config1) & ~PMCCR1_POWER_OFF);
d49747bdfb2ddeb Scott Wood      2007-10-09  216  
d49747bdfb2ddeb Scott Wood      2007-10-09  217  		out_be32(&pmc_regs->mask, PMCER_PMCI);
87faaabb09d0802 Anton Vorontsov 2009-12-10  218  
87faaabb09d0802 Anton Vorontsov 2009-12-10  219  		mpc83xx_suspend_restore_regs();
d49747bdfb2ddeb Scott Wood      2007-10-09  220  	} else {
d49747bdfb2ddeb Scott Wood      2007-10-09  221  		out_be32(&pmc_regs->mask, PMCER_PMCI);
d49747bdfb2ddeb Scott Wood      2007-10-09  222  
d49747bdfb2ddeb Scott Wood      2007-10-09  223  		mpc6xx_enter_standby();
d49747bdfb2ddeb Scott Wood      2007-10-09  224  	}
d49747bdfb2ddeb Scott Wood      2007-10-09  225  
d49747bdfb2ddeb Scott Wood      2007-10-09  226  	ret = 0;
d49747bdfb2ddeb Scott Wood      2007-10-09  227  
d49747bdfb2ddeb Scott Wood      2007-10-09  228  out:
d49747bdfb2ddeb Scott Wood      2007-10-09  229  	out_be32(&pmc_regs->config1,
d49747bdfb2ddeb Scott Wood      2007-10-09  230  	         in_be32(&pmc_regs->config1) & ~PMCCR1_PME_EN);
d49747bdfb2ddeb Scott Wood      2007-10-09  231  
d49747bdfb2ddeb Scott Wood      2007-10-09  232  	return ret;
d49747bdfb2ddeb Scott Wood      2007-10-09  233  }
d49747bdfb2ddeb Scott Wood      2007-10-09  234  

:::::: The code at line 210 was first introduced by commit
:::::: d49747bdfb2ddebea24d1580da55b79d093d48a9 powerpc/mpc83xx: Power Management support

:::::: TO: Scott Wood <scottwood@freescale.com>
:::::: CC: Kumar Gala <galak@kernel.crashing.org>

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 40279 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-08  9:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-08  9:19 arch/powerpc/platforms/83xx/suspend.c:210:17: error: implicit declaration of function 'enable_kernel_fp' kernel test robot
2021-10-08  9:19 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.