From: kernel test robot <lkp@intel.com> To: Saravana Kannan <skannan@codeaurora.org> Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Chanwoo Choi <cw00.choi@samsung.com>, Sibi Sankar <sibis@codeaurora.org> Subject: [chanwoo:devfreq-testing 2/4] drivers/devfreq/governor_passive.c:255:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? Date: Wed, 15 Sep 2021 23:27:40 +0800 [thread overview] Message-ID: <202109152333.Qf16bCwd-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4299 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing head: c27162469a5f04fd237debefc710d28956b9704e commit: 0e153a22371583fa454d9f54a828bbcb81c074c4 [2/4] PM / devfreq: Add cpu based scaling support to passive governor config: nios2-allyesconfig (attached as .config) compiler: nios2-linux-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/chanwoo/linux.git/commit/?id=0e153a22371583fa454d9f54a828bbcb81c074c4 git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git git fetch --no-tags chanwoo devfreq-testing git checkout 0e153a22371583fa454d9f54a828bbcb81c074c4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 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/devfreq/governor_passive.c: In function 'cpufreq_passive_register_notifier': >> drivers/devfreq/governor_passive.c:255:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? [-Werror=implicit-function-declaration] 255 | get_online_cpus(); | ^~~~~~~~~~~~~~~ | get_online_mems >> drivers/devfreq/governor_passive.c:305:9: error: implicit declaration of function 'put_online_cpus'; did you mean 'num_online_cpus'? [-Werror=implicit-function-declaration] 305 | put_online_cpus(); | ^~~~~~~~~~~~~~~ | num_online_cpus cc1: all warnings being treated as errors vim +255 drivers/devfreq/governor_passive.c 242 243 static int cpufreq_passive_register_notifier(struct devfreq *devfreq) 244 { 245 struct devfreq_passive_data *p_data 246 = (struct devfreq_passive_data *)devfreq->data; 247 struct device *dev = devfreq->dev.parent; 248 struct opp_table *opp_table = NULL; 249 struct devfreq_cpu_data *cpu_data; 250 struct cpufreq_policy *policy; 251 struct device *cpu_dev; 252 unsigned int cpu; 253 int ret; 254 > 255 get_online_cpus(); 256 257 p_data->nb.notifier_call = cpufreq_passive_notifier_call; 258 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER); 259 if (ret) { 260 dev_err(dev, "failed to register cpufreq notifier\n"); 261 p_data->nb.notifier_call = NULL; 262 goto out; 263 } 264 265 for_each_online_cpu(cpu) { 266 if (p_data->cpu_data[cpu]) 267 continue; 268 269 policy = cpufreq_cpu_get(cpu); 270 if (policy) { 271 cpu_data = kzalloc(sizeof(*cpu_data), GFP_KERNEL); 272 if (!cpu_data) { 273 ret = -ENOMEM; 274 goto out; 275 } 276 277 cpu_dev = get_cpu_device(cpu); 278 if (!cpu_dev) { 279 dev_err(dev, "failed to get cpu device\n"); 280 ret = -ENODEV; 281 goto out; 282 } 283 284 opp_table = dev_pm_opp_get_opp_table(cpu_dev); 285 if (IS_ERR(opp_table)) { 286 ret = PTR_ERR(opp_table); 287 goto out; 288 } 289 290 cpu_data->dev = cpu_dev; 291 cpu_data->opp_table = opp_table; 292 cpu_data->first_cpu = cpumask_first(policy->related_cpus); 293 cpu_data->cur_freq = policy->cur; 294 cpu_data->min_freq = policy->cpuinfo.min_freq; 295 cpu_data->max_freq = policy->cpuinfo.max_freq; 296 297 p_data->cpu_data[cpu] = cpu_data; 298 cpufreq_cpu_put(policy); 299 } else { 300 ret = -EPROBE_DEFER; 301 goto out; 302 } 303 } 304 out: > 305 put_online_cpus(); 306 if (ret) 307 return ret; 308 309 mutex_lock(&devfreq->lock); 310 ret = devfreq_update_target(devfreq, 0L); 311 mutex_unlock(&devfreq->lock); 312 if (ret) 313 dev_err(dev, "failed to update the frequency\n"); 314 315 return ret; 316 } 317 --- 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: 60767 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com> To: kbuild-all@lists.01.org Subject: [chanwoo:devfreq-testing 2/4] drivers/devfreq/governor_passive.c:255:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? Date: Wed, 15 Sep 2021 23:27:40 +0800 [thread overview] Message-ID: <202109152333.Qf16bCwd-lkp@intel.com> (raw) [-- Attachment #1: Type: text/plain, Size: 4415 bytes --] tree: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git devfreq-testing head: c27162469a5f04fd237debefc710d28956b9704e commit: 0e153a22371583fa454d9f54a828bbcb81c074c4 [2/4] PM / devfreq: Add cpu based scaling support to passive governor config: nios2-allyesconfig (attached as .config) compiler: nios2-linux-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/chanwoo/linux.git/commit/?id=0e153a22371583fa454d9f54a828bbcb81c074c4 git remote add chanwoo https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/linux.git git fetch --no-tags chanwoo devfreq-testing git checkout 0e153a22371583fa454d9f54a828bbcb81c074c4 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nios2 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/devfreq/governor_passive.c: In function 'cpufreq_passive_register_notifier': >> drivers/devfreq/governor_passive.c:255:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? [-Werror=implicit-function-declaration] 255 | get_online_cpus(); | ^~~~~~~~~~~~~~~ | get_online_mems >> drivers/devfreq/governor_passive.c:305:9: error: implicit declaration of function 'put_online_cpus'; did you mean 'num_online_cpus'? [-Werror=implicit-function-declaration] 305 | put_online_cpus(); | ^~~~~~~~~~~~~~~ | num_online_cpus cc1: all warnings being treated as errors vim +255 drivers/devfreq/governor_passive.c 242 243 static int cpufreq_passive_register_notifier(struct devfreq *devfreq) 244 { 245 struct devfreq_passive_data *p_data 246 = (struct devfreq_passive_data *)devfreq->data; 247 struct device *dev = devfreq->dev.parent; 248 struct opp_table *opp_table = NULL; 249 struct devfreq_cpu_data *cpu_data; 250 struct cpufreq_policy *policy; 251 struct device *cpu_dev; 252 unsigned int cpu; 253 int ret; 254 > 255 get_online_cpus(); 256 257 p_data->nb.notifier_call = cpufreq_passive_notifier_call; 258 ret = cpufreq_register_notifier(&p_data->nb, CPUFREQ_TRANSITION_NOTIFIER); 259 if (ret) { 260 dev_err(dev, "failed to register cpufreq notifier\n"); 261 p_data->nb.notifier_call = NULL; 262 goto out; 263 } 264 265 for_each_online_cpu(cpu) { 266 if (p_data->cpu_data[cpu]) 267 continue; 268 269 policy = cpufreq_cpu_get(cpu); 270 if (policy) { 271 cpu_data = kzalloc(sizeof(*cpu_data), GFP_KERNEL); 272 if (!cpu_data) { 273 ret = -ENOMEM; 274 goto out; 275 } 276 277 cpu_dev = get_cpu_device(cpu); 278 if (!cpu_dev) { 279 dev_err(dev, "failed to get cpu device\n"); 280 ret = -ENODEV; 281 goto out; 282 } 283 284 opp_table = dev_pm_opp_get_opp_table(cpu_dev); 285 if (IS_ERR(opp_table)) { 286 ret = PTR_ERR(opp_table); 287 goto out; 288 } 289 290 cpu_data->dev = cpu_dev; 291 cpu_data->opp_table = opp_table; 292 cpu_data->first_cpu = cpumask_first(policy->related_cpus); 293 cpu_data->cur_freq = policy->cur; 294 cpu_data->min_freq = policy->cpuinfo.min_freq; 295 cpu_data->max_freq = policy->cpuinfo.max_freq; 296 297 p_data->cpu_data[cpu] = cpu_data; 298 cpufreq_cpu_put(policy); 299 } else { 300 ret = -EPROBE_DEFER; 301 goto out; 302 } 303 } 304 out: > 305 put_online_cpus(); 306 if (ret) 307 return ret; 308 309 mutex_lock(&devfreq->lock); 310 ret = devfreq_update_target(devfreq, 0L); 311 mutex_unlock(&devfreq->lock); 312 if (ret) 313 dev_err(dev, "failed to update the frequency\n"); 314 315 return ret; 316 } 317 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org [-- Attachment #2: config.gz --] [-- Type: application/gzip, Size: 60767 bytes --]
next reply other threads:[~2021-09-15 15:28 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-15 15:27 kernel test robot [this message] 2021-09-15 15:27 ` [chanwoo:devfreq-testing 2/4] drivers/devfreq/governor_passive.c:255:9: error: implicit declaration of function 'get_online_cpus'; did you mean 'get_online_mems'? kernel test robot
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=202109152333.Qf16bCwd-lkp@intel.com \ --to=lkp@intel.com \ --cc=cw00.choi@samsung.com \ --cc=kbuild-all@lists.01.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sibis@codeaurora.org \ --cc=skannan@codeaurora.org \ /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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.