lkml.org 
[lkml]   [2022]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[asahilinux:bits/100-shutdown-notifier 20/20] drivers/regulator/pfuze100-regulator.c:619:6: error: use of undeclared identifier 'pm_power_off_prepare'; did you mean 'pfuze_power_off_prepare'?
tree:   https://github.com/AsahiLinux/linux bits/100-shutdown-notifier
head: cd8e473345d65a9162b255d1997fa89c86280cde
commit: cd8e473345d65a9162b255d1997fa89c86280cde [20/20] reboot: Remove pm_power_off_prepare()
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220221/202202210643.6maPZZt9-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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://github.com/AsahiLinux/linux/commit/cd8e473345d65a9162b255d1997fa89c86280cde
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux bits/100-shutdown-notifier
git checkout cd8e473345d65a9162b255d1997fa89c86280cde
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/regulator/

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/regulator/pfuze100-regulator.c:619:6: error: use of undeclared identifier 'pm_power_off_prepare'; did you mean 'pfuze_power_off_prepare'?
if (pm_power_off_prepare) {
^~~~~~~~~~~~~~~~~~~~
pfuze_power_off_prepare
drivers/regulator/pfuze100-regulator.c:574:13: note: 'pfuze_power_off_prepare' declared here
static void pfuze_power_off_prepare(void)
^
drivers/regulator/pfuze100-regulator.c:630:2: error: use of undeclared identifier 'pm_power_off_prepare'
pm_power_off_prepare = pfuze_power_off_prepare;
^
drivers/regulator/pfuze100-regulator.c:844:3: error: use of undeclared identifier 'pm_power_off_prepare'
pm_power_off_prepare = NULL;
^
3 errors generated.


vim +619 drivers/regulator/pfuze100-regulator.c

c29daffa322ad3 Oleksij Rempel 2018-08-02 611
c29daffa322ad3 Oleksij Rempel 2018-08-02 612 static int pfuze_power_off_prepare_init(struct pfuze_chip *pfuze_chip)
c29daffa322ad3 Oleksij Rempel 2018-08-02 613 {
c29daffa322ad3 Oleksij Rempel 2018-08-02 614 if (pfuze_chip->chip_id != PFUZE100) {
c29daffa322ad3 Oleksij Rempel 2018-08-02 615 dev_warn(pfuze_chip->dev, "Requested pm_power_off_prepare handler for not supported chip\n");
c29daffa322ad3 Oleksij Rempel 2018-08-02 616 return -ENODEV;
c29daffa322ad3 Oleksij Rempel 2018-08-02 617 }
c29daffa322ad3 Oleksij Rempel 2018-08-02 618
c29daffa322ad3 Oleksij Rempel 2018-08-02 @619 if (pm_power_off_prepare) {
c29daffa322ad3 Oleksij Rempel 2018-08-02 620 dev_warn(pfuze_chip->dev, "pm_power_off_prepare is already registered.\n");
c29daffa322ad3 Oleksij Rempel 2018-08-02 621 return -EBUSY;
c29daffa322ad3 Oleksij Rempel 2018-08-02 622 }
c29daffa322ad3 Oleksij Rempel 2018-08-02 623
c29daffa322ad3 Oleksij Rempel 2018-08-02 624 if (syspm_pfuze_chip) {
c29daffa322ad3 Oleksij Rempel 2018-08-02 625 dev_warn(pfuze_chip->dev, "syspm_pfuze_chip is already set.\n");
c29daffa322ad3 Oleksij Rempel 2018-08-02 626 return -EBUSY;
c29daffa322ad3 Oleksij Rempel 2018-08-02 627 }
c29daffa322ad3 Oleksij Rempel 2018-08-02 628
c29daffa322ad3 Oleksij Rempel 2018-08-02 629 syspm_pfuze_chip = pfuze_chip;
c29daffa322ad3 Oleksij Rempel 2018-08-02 630 pm_power_off_prepare = pfuze_power_off_prepare;
c29daffa322ad3 Oleksij Rempel 2018-08-02 631
c29daffa322ad3 Oleksij Rempel 2018-08-02 632 return 0;
c29daffa322ad3 Oleksij Rempel 2018-08-02 633 }
c29daffa322ad3 Oleksij Rempel 2018-08-02 634

:::::: The code at line 619 was first introduced by commit
:::::: c29daffa322ad36978cbce487f8ebcd9c3c3f7c0 regulator: pfuze100-regulator: provide pm_power_off_prepare handler

:::::: TO: Oleksij Rempel <o.rempel@pengutronix.de>
:::::: CC: Mark Brown <broonie@kernel.org>

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

\
 
 \ /
  Last update: 2022-02-20 23:26    [W:0.031 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site