lkml.org 
[lkml]   [2022]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[vireshk-pm:opp/config 10/33] include/linux/pm_opp.h:459:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/config
head: d730dc101c586defb49eeafd8eea9b7bb0baa01b
commit: a23b86fb0614c769679169402c09ebcd07dbb22f [10/33] OPP: Add dev_pm_opp_set_config() and friends
config: m68k-randconfig-r033-20220524 (https://download.01.org/0day-ci/archive/20220526/202205260146.VYGeif1G-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 11.3.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/vireshk/pm.git/commit/?id=a23b86fb0614c769679169402c09ebcd07dbb22f
git remote add vireshk-pm https://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git
git fetch --no-tags vireshk-pm opp/config
git checkout a23b86fb0614c769679169402c09ebcd07dbb22f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash kernel/sched/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

In file included from include/linux/cpufreq.h:19,
from kernel/sched/sched.h:30,
from kernel/sched/core.c:81:
include/linux/pm_opp.h: In function 'devm_pm_opp_set_config':
>> include/linux/pm_opp.h:459:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
459 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/core.c: At top level:
kernel/sched/core.c:5235:20: warning: no previous prototype for 'task_sched_runtime' [-Wmissing-prototypes]
5235 | unsigned long long task_sched_runtime(struct task_struct *p)
| ^~~~~~~~~~~~~~~~~~
kernel/sched/core.c:9420:13: warning: no previous prototype for 'sched_init_smp' [-Wmissing-prototypes]
9420 | void __init sched_init_smp(void)
| ^~~~~~~~~~~~~~
kernel/sched/core.c:9448:13: warning: no previous prototype for 'sched_init' [-Wmissing-prototypes]
9448 | void __init sched_init(void)
| ^~~~~~~~~~
--
In file included from include/linux/cpufreq.h:19,
from kernel/sched/sched.h:30,
from kernel/sched/fair.c:53:
include/linux/pm_opp.h: In function 'devm_pm_opp_set_config':
>> include/linux/pm_opp.h:459:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
459 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~~~~~~~~~~~~~~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:663:5: warning: no previous prototype for 'sched_update_scaling' [-Wmissing-prototypes]
663 | int sched_update_scaling(void)
| ^~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/cpufreq.h:19,
from kernel/sched/sched.h:30,
from kernel/sched/build_policy.c:33:
include/linux/pm_opp.h: In function 'devm_pm_opp_set_config':
>> include/linux/pm_opp.h:459:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
459 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~~~~~~~~~~~~~~
In file included from kernel/sched/build_policy.c:43:
kernel/sched/rt.c: At top level:
kernel/sched/rt.c:666:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
666 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from include/linux/cpufreq.h:19,
from kernel/sched/build_utility.c:21:
include/linux/pm_opp.h: In function 'devm_pm_opp_set_config':
>> include/linux/pm_opp.h:459:16: warning: returning 'void *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
459 | return ERR_PTR(-EOPNOTSUPP);
| ^~~~~~~~~~~~~~~~~~~~


vim +459 include/linux/pm_opp.h

456
457 static inline int devm_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config)
458 {
> 459 return ERR_PTR(-EOPNOTSUPP);
460 }
461

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

\
 
 \ /
  Last update: 2022-05-25 19:40    [W:1.108 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site