[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'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>

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@xxxxxxxxxxxx>
:::::: CC: Viresh Kumar <viresh.kumar@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux