[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210080609.7L1o6DTM-lkp@intel.com>
Date: Sat, 8 Oct 2022 06:34:30 +0800
From: kernel test robot <lkp@...el.com>
To: Thierry Reding <treding@...dia.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [thierryreding:for-6.1/work 113/126]
drivers/cpufreq/cppc_cpufreq.c:641:32: error: 'cppc_get_cpu_power'
undeclared
tree: https://github.com/thierryreding/linux for-6.1/work
head: 729a34072c3a43e35392a34f33849ce419e99e99
commit: 0be9cc83439a494490f3306ead13e6b01c0fbfe2 [113/126] WIP
config: arm64-allyesconfig
compiler: aarch64-linux-gcc (GCC) 12.1.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://github.com/thierryreding/linux/commit/0be9cc83439a494490f3306ead13e6b01c0fbfe2
git remote add thierryreding https://github.com/thierryreding/linux
git fetch --no-tags thierryreding for-6.1/work
git checkout 0be9cc83439a494490f3306ead13e6b01c0fbfe2
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
In file included from include/linux/device.h:16,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from drivers/cpufreq/cppc_cpufreq.c:17:
drivers/cpufreq/cppc_cpufreq.c: In function 'cppc_cpufreq_register_em':
>> drivers/cpufreq/cppc_cpufreq.c:641:32: error: 'cppc_get_cpu_power' undeclared (first use in this function)
641 | EM_ADV_DATA_CB(cppc_get_cpu_power, cppc_get_cpu_cost);
| ^~~~~~~~~~~~~~~~~~
include/linux/energy_model.h:164:27: note: in definition of macro 'EM_ADV_DATA_CB'
164 | { .active_power = _active_power_cb, \
| ^~~~~~~~~~~~~~~~
drivers/cpufreq/cppc_cpufreq.c:641:32: note: each undeclared identifier is reported only once for each function it appears in
641 | EM_ADV_DATA_CB(cppc_get_cpu_power, cppc_get_cpu_cost);
| ^~~~~~~~~~~~~~~~~~
include/linux/energy_model.h:164:27: note: in definition of macro 'EM_ADV_DATA_CB'
164 | { .active_power = _active_power_cb, \
| ^~~~~~~~~~~~~~~~
>> drivers/cpufreq/cppc_cpufreq.c:641:52: error: 'cppc_get_cpu_cost' undeclared (first use in this function)
641 | EM_ADV_DATA_CB(cppc_get_cpu_power, cppc_get_cpu_cost);
| ^~~~~~~~~~~~~~~~~
include/linux/energy_model.h:165:23: note: in definition of macro 'EM_ADV_DATA_CB'
165 | .get_cost = _cost_cb }
| ^~~~~~~~
vim +/cppc_get_cpu_power +641 drivers/cpufreq/cppc_cpufreq.c
d3c3db41df7e1b Pierre Gondois 2022-04-25 636
740fcdc2c20ecf Pierre Gondois 2022-04-25 637 static void cppc_cpufreq_register_em(struct cpufreq_policy *policy)
740fcdc2c20ecf Pierre Gondois 2022-04-25 638 {
740fcdc2c20ecf Pierre Gondois 2022-04-25 639 struct cppc_cpudata *cpu_data;
740fcdc2c20ecf Pierre Gondois 2022-04-25 640 struct em_data_callback em_cb =
740fcdc2c20ecf Pierre Gondois 2022-04-25 @641 EM_ADV_DATA_CB(cppc_get_cpu_power, cppc_get_cpu_cost);
740fcdc2c20ecf Pierre Gondois 2022-04-25 642
740fcdc2c20ecf Pierre Gondois 2022-04-25 643 cpu_data = policy->driver_data;
740fcdc2c20ecf Pierre Gondois 2022-04-25 644 em_dev_register_perf_domain(get_cpu_device(policy->cpu),
740fcdc2c20ecf Pierre Gondois 2022-04-25 645 get_perf_level_count(policy), &em_cb,
740fcdc2c20ecf Pierre Gondois 2022-04-25 646 cpu_data->shared_cpu_map, 0);
740fcdc2c20ecf Pierre Gondois 2022-04-25 647 }
740fcdc2c20ecf Pierre Gondois 2022-04-25 648
:::::: The code at line 641 was first introduced by commit
:::::: 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae cpufreq: CPPC: Register EM based on efficiency class information
:::::: TO: Pierre Gondois <Pierre.Gondois@....com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@...el.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (362339 bytes)
Powered by blists - more mailing lists