Messages in this thread | | | Date | Fri, 26 Nov 2021 00:06:48 +0800 | From | kernel test robot <> | Subject | [norov:bitmap-20211125 9/11] drivers/cpufreq/pcc-cpufreq.c:596:6: error: implicit declaration of function 'num_present_cpus_ge'; did you mean 'num_present_cpus_gt'? |
| |
tree: https://github.com/norov/linux bitmap-20211125 head: e3a9cfe4830141c88aa5d8a93eae3512b2ae2882 commit: 9a237acabf8c32b395723ad4a1642201573e6ed1 [9/11] lib/cpumask: introduce num_possible_cpus_{eq,gt,le} config: i386-debian-10.3 (https://download.01.org/0day-ci/archive/20211125/202111252347.HKeTRtV5-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/norov/linux/commit/9a237acabf8c32b395723ad4a1642201573e6ed1 git remote add norov https://github.com/norov/linux git fetch --no-tags norov bitmap-20211125 git checkout 9a237acabf8c32b395723ad4a1642201573e6ed1 # save the config file to linux build tree make W=1 ARCH=i386
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/pcc-cpufreq.c: In function 'pcc_cpufreq_init': >> drivers/cpufreq/pcc-cpufreq.c:596:6: error: implicit declaration of function 'num_present_cpus_ge'; did you mean 'num_present_cpus_gt'? [-Werror=implicit-function-declaration] 596 | if (num_present_cpus_ge(4)) { | ^~~~~~~~~~~~~~~~~~~ | num_present_cpus_gt cc1: some warnings being treated as errors
vim +596 drivers/cpufreq/pcc-cpufreq.c
578 579 static int __init pcc_cpufreq_init(void) 580 { 581 int ret; 582 583 /* Skip initialization if another cpufreq driver is there. */ 584 if (cpufreq_get_current_driver()) 585 return -EEXIST; 586 587 if (acpi_disabled) 588 return -ENODEV; 589 590 ret = pcc_cpufreq_probe(); 591 if (ret) { 592 pr_debug("pcc_cpufreq_init: PCCH evaluation failed\n"); 593 return ret; 594 } 595 > 596 if (num_present_cpus_ge(4)) { 597 pcc_cpufreq_driver.flags |= CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING; 598 pr_err("%s: Too many CPUs, dynamic performance scaling disabled\n", 599 __func__); 600 pr_err("%s: Try to enable another scaling driver through BIOS settings\n", 601 __func__); 602 pr_err("%s: and complain to the system vendor\n", __func__); 603 } 604 605 ret = cpufreq_register_driver(&pcc_cpufreq_driver); 606 607 return ret; 608 } 609
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |