oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	linux-acpi@vger.kernel.org, devel@acpica.org,
	linux-pm@vger.kernel.org
Subject: [rafael-pm:intel_pstate-testing 14/14] drivers/cpufreq/intel_pstate.c:963:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations
Date: Thu, 28 Mar 2024 22:08:57 +0800	[thread overview]
Message-ID: <202403282240.I0XCTxpL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git intel_pstate-testing
head:   16303764deedb814defe7e69712edec6a09b50ad
commit: 16303764deedb814defe7e69712edec6a09b50ad [14/14] cpufreq: intel_pstate: Set asymmetric CPU capacity on hybrid systems
config: i386-defconfig (https://download.01.org/0day-ci/archive/20240328/202403282240.I0XCTxpL-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240328/202403282240.I0XCTxpL-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202403282240.I0XCTxpL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/cpufreq/intel_pstate.c:963:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     963 |         arch_set_cpu_capacity(cpu->cpu, cap);
         |         ^
   drivers/cpufreq/intel_pstate.c:963:2: note: did you mean 'arch_scale_cpu_capacity'?
   include/linux/sched/topology.h:267:15: note: 'arch_scale_cpu_capacity' declared here
     267 | unsigned long arch_scale_cpu_capacity(int cpu)
         |               ^
   drivers/cpufreq/intel_pstate.c:1008:3: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1008 |                 arch_set_cpu_capacity(max_perf_cpu->cpu, SCHED_CAPACITY_SCALE);
         |                 ^
   drivers/cpufreq/intel_pstate.c:1014:4: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1014 |                         arch_set_cpu_capacity(cpunum, SCHED_CAPACITY_SCALE);
         |                         ^
   drivers/cpufreq/intel_pstate.c:1073:3: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1073 |                 arch_set_cpu_capacity(cpu->cpu, SCHED_CAPACITY_SCALE);
         |                 ^
   drivers/cpufreq/intel_pstate.c:1207:2: error: call to undeclared function 'arch_set_cpu_capacity'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1207 |         arch_set_cpu_capacity(cpu->cpu, SCHED_CAPACITY_SCALE);
         |         ^
   5 errors generated.


vim +/arch_set_cpu_capacity +963 drivers/cpufreq/intel_pstate.c

   957	
   958	static void hybrid_set_cpu_capacity(struct cpudata *cpu)
   959	{
   960		u64 cap = div_u64((u64)SCHED_CAPACITY_SCALE * cpu->capacity_perf,
   961				  hybrid_max_perf_cpu->capacity_perf);
   962	
 > 963		arch_set_cpu_capacity(cpu->cpu, cap);
   964	}
   965	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2024-03-28 14:09 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=202403282240.I0XCTxpL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@acpica.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rjw@rjwysocki.net \
    /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;
as well as URLs for NNTP newsgroup(s).