Linux Power Management development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vincent Donnefort <vincent.donnefort@arm.com>
Cc: kbuild-all@lists.01.org, linux-acpi@vger.kernel.org,
	devel@acpica.org, linux-pm@vger.kernel.org,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: [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: Thu, 7 Oct 2021 18:35:55 +0800	[thread overview]
Message-ID: <202110071853.ds7uW9eM-lkp@intel.com> (raw)

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

             reply	other threads:[~2021-10-07 10:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-07 10:35 kernel test robot [this message]
2021-10-07 11:26 ` [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' Vincent Donnefort
2021-10-07 14:59   ` Rafael J. Wysocki

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=202110071853.ds7uW9eM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@acpica.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --cc=vincent.donnefort@arm.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