Linux Power Management development
 help / color / mirror / Atom feed
* [rafael-pm:bleeding-edge 47/54] drivers/cpufreq/mediatek-cpufreq-hw.c:112:17: error: too few arguments to function 'cpufreq_table_find_index_dl'
@ 2021-10-07 10:35 kernel test robot
  2021-10-07 11:26 ` Vincent Donnefort
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2021-10-07 10:35 UTC (permalink / raw)
  To: Vincent Donnefort
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki

[-- Attachment #1: Type: text/plain, Size: 3256 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   6cb3f7cfca6963de4f486c4bd99fdefa56f75870
commit: 1f39fa0dccff71d4788089b5e617229b19166867 [47/54] cpufreq: Introducing CPUFREQ_RELATION_E
config: arm-buildonly-randconfig-r001-20211007 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=1f39fa0dccff71d4788089b5e617229b19166867
        git remote add rafael-pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
        git fetch --no-tags rafael-pm bleeding-edge
        git checkout 1f39fa0dccff71d4788089b5e617229b19166867
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/cpufreq/

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/mediatek-cpufreq-hw.c: In function 'mtk_cpufreq_hw_fast_switch':
>> drivers/cpufreq/mediatek-cpufreq-hw.c:112:17: error: too few arguments to function 'cpufreq_table_find_index_dl'
     112 |         index = cpufreq_table_find_index_dl(policy, target_freq);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/cpufreq/mediatek-cpufreq-hw.c:7:
   include/linux/cpufreq.h:814:19: note: declared here
     814 | static inline int cpufreq_table_find_index_dl(struct cpufreq_policy *policy,
         |                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/cpufreq_table_find_index_dl +112 drivers/cpufreq/mediatek-cpufreq-hw.c

4855e26bcf4d28 Hector.Yuan 2021-09-03  105  
4855e26bcf4d28 Hector.Yuan 2021-09-03  106  static unsigned int mtk_cpufreq_hw_fast_switch(struct cpufreq_policy *policy,
4855e26bcf4d28 Hector.Yuan 2021-09-03  107  					       unsigned int target_freq)
4855e26bcf4d28 Hector.Yuan 2021-09-03  108  {
4855e26bcf4d28 Hector.Yuan 2021-09-03  109  	struct mtk_cpufreq_data *data = policy->driver_data;
4855e26bcf4d28 Hector.Yuan 2021-09-03  110  	unsigned int index;
4855e26bcf4d28 Hector.Yuan 2021-09-03  111  
4855e26bcf4d28 Hector.Yuan 2021-09-03 @112  	index = cpufreq_table_find_index_dl(policy, target_freq);
4855e26bcf4d28 Hector.Yuan 2021-09-03  113  
4855e26bcf4d28 Hector.Yuan 2021-09-03  114  	writel_relaxed(index, data->reg_bases[REG_FREQ_PERF_STATE]);
4855e26bcf4d28 Hector.Yuan 2021-09-03  115  
4855e26bcf4d28 Hector.Yuan 2021-09-03  116  	return policy->freq_table[index].frequency;
4855e26bcf4d28 Hector.Yuan 2021-09-03  117  }
4855e26bcf4d28 Hector.Yuan 2021-09-03  118  

:::::: The code at line 112 was first introduced by commit
:::::: 4855e26bcf4d28956f3e33231b961610a0d4a72d cpufreq: mediatek-hw: Add support for CPUFREQ HW

:::::: TO: Hector.Yuan <hector.yuan@mediatek.com>
:::::: CC: Viresh Kumar <viresh.kumar@linaro.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 40079 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-07 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-07 10:35 [rafael-pm:bleeding-edge 47/54] drivers/cpufreq/mediatek-cpufreq-hw.c:112:17: error: too few arguments to function 'cpufreq_table_find_index_dl' kernel test robot
2021-10-07 11:26 ` Vincent Donnefort
2021-10-07 14:59   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox