lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209040311.MTIju8YW-lkp@intel.com>
Date:   Sun, 4 Sep 2022 04:00:59 +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-5.21/work 120/125]
 drivers/cpufreq/cppc_cpufreq.c:625:32: error: 'cppc_get_cpu_power'
 undeclared

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@...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: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@....com>
:::::: CC: Rafael J. Wysocki <rafael.j.wysocki@...el.com>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ