mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Thierry Reding <treding@nvidia.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [thierryreding:for-5.21/work 120/125] drivers/cpufreq/cppc_cpufreq.c:625:32: error: 'cppc_get_cpu_power' undeclared
Date: Sun, 4 Sep 2022 04:00:59 +0800	[thread overview]
Message-ID: <202209040311.MTIju8YW-lkp@intel.com> (raw)

tree:   https://github.com/thierryreding/linux for-5.21/work
head:   52ddba5b7001206107d4587c706be62369d71240
commit: 80a1856c0cbc57c7ecee8571cd34b76b5542bbd1 [120/125] WIP
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20220904/202209040311.MTIju8YW-lkp@intel.com/config)
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/80a1856c0cbc57c7ecee8571cd34b76b5542bbd1
        git remote add thierryreding https://github.com/thierryreding/linux
        git fetch --no-tags thierryreding for-5.21/work
        git checkout 80a1856c0cbc57c7ecee8571cd34b76b5542bbd1
        # 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@intel.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:625:32: error: 'cppc_get_cpu_power' undeclared (first use in this function)
     625 |                 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:625:32: note: each undeclared identifier is reported only once for each function it appears in
     625 |                 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:625:52: error: 'cppc_get_cpu_cost' undeclared (first use in this function)
     625 |                 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 +625 drivers/cpufreq/cppc_cpufreq.c

d3c3db41df7e1b Pierre Gondois 2022-04-25  620  
740fcdc2c20ecf Pierre Gondois 2022-04-25  621  static void cppc_cpufreq_register_em(struct cpufreq_policy *policy)
740fcdc2c20ecf Pierre Gondois 2022-04-25  622  {
740fcdc2c20ecf Pierre Gondois 2022-04-25  623  	struct cppc_cpudata *cpu_data;
740fcdc2c20ecf Pierre Gondois 2022-04-25  624  	struct em_data_callback em_cb =
740fcdc2c20ecf Pierre Gondois 2022-04-25 @625  		EM_ADV_DATA_CB(cppc_get_cpu_power, cppc_get_cpu_cost);
740fcdc2c20ecf Pierre Gondois 2022-04-25  626  
740fcdc2c20ecf Pierre Gondois 2022-04-25  627  	cpu_data = policy->driver_data;
740fcdc2c20ecf Pierre Gondois 2022-04-25  628  	em_dev_register_perf_domain(get_cpu_device(policy->cpu),
740fcdc2c20ecf Pierre Gondois 2022-04-25  629  			get_perf_level_count(policy), &em_cb,
740fcdc2c20ecf Pierre Gondois 2022-04-25  630  			cpu_data->shared_cpu_map, 0);
740fcdc2c20ecf Pierre Gondois 2022-04-25  631  }
740fcdc2c20ecf Pierre Gondois 2022-04-25  632  

:::::: The code at line 625 was first introduced by commit
:::::: 740fcdc2c20ecf855b36b919d7fa1b872b5a7eae cpufreq: CPPC: Register EM based on efficiency class information

:::::: TO: Pierre Gondois <Pierre.Gondois@arm.com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-09-03 20:01 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=202209040311.MTIju8YW-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=treding@nvidia.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®