tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: 2a58871c00f77abfc45935812e7e62a9d8a59a40 commit: d4f8138354b9ec290de0c7ba527a945c5549e32b [12/29] PM: domains: Add support for PM domain on/off notifiers for genpd config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 9.3.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/rafael/linux-pm.git/commit/?id=d4f8138354b9ec290de0c7ba527a945c5549e32b git remote add pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git git fetch --no-tags pm bleeding-edge git checkout d4f8138354b9ec290de0c7ba527a945c5549e32b # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/base/power/domain.c: In function '_genpd_power_on': >> drivers/base/power/domain.c:419:8: error: implicit declaration of function '__raw_notifier_call_chain'; did you mean 'raw_notifier_call_chain'? [-Werror=implicit-function-declaration] 419 | ret = __raw_notifier_call_chain(&genpd->power_notifiers, | ^~~~~~~~~~~~~~~~~~~~~~~~~ | raw_notifier_call_chain cc1: some warnings being treated as errors vim +419 drivers/base/power/domain.c 410 411 static int _genpd_power_on(struct generic_pm_domain *genpd, bool timed) 412 { 413 unsigned int state_idx = genpd->state_idx; 414 ktime_t time_start; 415 s64 elapsed_ns; 416 int ret, nr_calls = 0; 417 418 /* Notify consumers that we are about to power on. */ > 419 ret = __raw_notifier_call_chain(&genpd->power_notifiers, 420 GENPD_NOTIFY_PRE_ON, NULL, -1, 421 &nr_calls); 422 ret = notifier_to_errno(ret); 423 if (ret) 424 goto err; 425 426 if (!genpd->power_on) 427 goto out; 428 429 if (!timed) { 430 ret = genpd->power_on(genpd); 431 if (ret) 432 goto err; 433 434 goto out; 435 } 436 437 time_start = ktime_get(); 438 ret = genpd->power_on(genpd); 439 if (ret) 440 goto err; 441 442 elapsed_ns = ktime_to_ns(ktime_sub(ktime_get(), time_start)); 443 if (elapsed_ns <= genpd->states[state_idx].power_on_latency_ns) 444 goto out; 445 446 genpd->states[state_idx].power_on_latency_ns = elapsed_ns; 447 genpd->max_off_time_changed = true; 448 pr_debug("%s: Power-%s latency exceeded, new value %lld ns\n", 449 genpd->name, "on", elapsed_ns); 450 451 out: 452 raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_ON, NULL); 453 return 0; 454 err: 455 raw_notifier_call_chain(&genpd->power_notifiers, GENPD_NOTIFY_OFF, 456 NULL); 457 return ret; 458 } 459 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org