From: kernel test robot <lkp@intel.com>
To: Yury Norov <yury.norov@gmail.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
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'?
Date: Fri, 26 Nov 2021 00:06:48 +0800 [thread overview]
Message-ID: <202111252347.HKeTRtV5-lkp@intel.com> (raw)
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
reply other threads:[~2021-11-25 16:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111252347.HKeTRtV5-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yury.norov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®