* [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 8788/9999] kernel/sched/pelt.c:35:5: warning: no previous prototype for 'get_pelt_halflife'
@ 2022-01-01 18:10 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-01 18:10 UTC (permalink / raw)
To: JianMin Liu; +Cc: kbuild-all, linux-kernel
Hi JianMin,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12
head: 982761134d974e5ec66bd02c18df9b3e2d61dbb4
commit: 1efc36b815769cb8c7dae1d53373b190c017f5d1 [8788/9999] ANDROID: sched: add a helper function to change PELT half-life
config: i386-buildonly-randconfig-r003-20211111 (https://download.01.org/0day-ci/archive/20220102/202201020220.ooYV0tfD-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/1efc36b815769cb8c7dae1d53373b190c017f5d1
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12
git checkout 1efc36b815769cb8c7dae1d53373b190c017f5d1
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/sched/pelt.c:35:5: warning: no previous prototype for 'get_pelt_halflife' [-Wmissing-prototypes]
35 | int get_pelt_halflife(void)
| ^~~~~~~~~~~~~~~~~
>> kernel/sched/pelt.c:68:5: warning: no previous prototype for 'set_pelt_halflife' [-Wmissing-prototypes]
68 | int set_pelt_halflife(int num)
| ^~~~~~~~~~~~~~~~~
vim +/get_pelt_halflife +35 kernel/sched/pelt.c
34
> 35 int get_pelt_halflife(void)
36 {
37 return pelt_load_avg_period;
38 }
39 EXPORT_SYMBOL_GPL(get_pelt_halflife);
40
41 static int __set_pelt_halflife(void *data)
42 {
43 int rc = 0;
44 int num = *(int *)data;
45
46 switch (num) {
47 case PELT8_LOAD_AVG_PERIOD:
48 pelt_load_avg_period = PELT8_LOAD_AVG_PERIOD;
49 pelt_load_avg_max = PELT8_LOAD_AVG_MAX;
50 pelt_runnable_avg_yN_inv = pelt8_runnable_avg_yN_inv;
51 pr_info("PELT half life is set to %dms\n", num);
52 break;
53 case PELT32_LOAD_AVG_PERIOD:
54 pelt_load_avg_period = PELT32_LOAD_AVG_PERIOD;
55 pelt_load_avg_max = PELT32_LOAD_AVG_MAX;
56 pelt_runnable_avg_yN_inv = pelt32_runnable_avg_yN_inv;
57 pr_info("PELT half life is set to %dms\n", num);
58 break;
59 default:
60 rc = -EINVAL;
61 pr_err("Failed to set PELT half life to %dms, the current value is %dms\n",
62 num, pelt_load_avg_period);
63 }
64
65 return rc;
66 }
67
> 68 int set_pelt_halflife(int num)
69 {
70 return stop_machine(__set_pelt_halflife, &num, NULL);
71 }
72 EXPORT_SYMBOL_GPL(set_pelt_halflife);
73
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 8788/9999] kernel/sched/pelt.c:35:5: warning: no previous prototype for 'get_pelt_halflife'
@ 2022-01-01 18:10 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-01 18:10 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3028 bytes --]
Hi JianMin,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android12-5.10-2021-12
head: 982761134d974e5ec66bd02c18df9b3e2d61dbb4
commit: 1efc36b815769cb8c7dae1d53373b190c017f5d1 [8788/9999] ANDROID: sched: add a helper function to change PELT half-life
config: i386-buildonly-randconfig-r003-20211111 (https://download.01.org/0day-ci/archive/20220102/202201020220.ooYV0tfD-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/1efc36b815769cb8c7dae1d53373b190c017f5d1
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android12-5.10-2021-12
git checkout 1efc36b815769cb8c7dae1d53373b190c017f5d1
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash kernel/sched/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/sched/pelt.c:35:5: warning: no previous prototype for 'get_pelt_halflife' [-Wmissing-prototypes]
35 | int get_pelt_halflife(void)
| ^~~~~~~~~~~~~~~~~
>> kernel/sched/pelt.c:68:5: warning: no previous prototype for 'set_pelt_halflife' [-Wmissing-prototypes]
68 | int set_pelt_halflife(int num)
| ^~~~~~~~~~~~~~~~~
vim +/get_pelt_halflife +35 kernel/sched/pelt.c
34
> 35 int get_pelt_halflife(void)
36 {
37 return pelt_load_avg_period;
38 }
39 EXPORT_SYMBOL_GPL(get_pelt_halflife);
40
41 static int __set_pelt_halflife(void *data)
42 {
43 int rc = 0;
44 int num = *(int *)data;
45
46 switch (num) {
47 case PELT8_LOAD_AVG_PERIOD:
48 pelt_load_avg_period = PELT8_LOAD_AVG_PERIOD;
49 pelt_load_avg_max = PELT8_LOAD_AVG_MAX;
50 pelt_runnable_avg_yN_inv = pelt8_runnable_avg_yN_inv;
51 pr_info("PELT half life is set to %dms\n", num);
52 break;
53 case PELT32_LOAD_AVG_PERIOD:
54 pelt_load_avg_period = PELT32_LOAD_AVG_PERIOD;
55 pelt_load_avg_max = PELT32_LOAD_AVG_MAX;
56 pelt_runnable_avg_yN_inv = pelt32_runnable_avg_yN_inv;
57 pr_info("PELT half life is set to %dms\n", num);
58 break;
59 default:
60 rc = -EINVAL;
61 pr_err("Failed to set PELT half life to %dms, the current value is %dms\n",
62 num, pelt_load_avg_period);
63 }
64
65 return rc;
66 }
67
> 68 int set_pelt_halflife(int num)
69 {
70 return stop_machine(__set_pelt_halflife, &num, NULL);
71 }
72 EXPORT_SYMBOL_GPL(set_pelt_halflife);
73
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-01 18:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-01 18:10 [ammarfaizi2-block:google/android/kernel/common/android12-5.10-2021-12 8788/9999] kernel/sched/pelt.c:35:5: warning: no previous prototype for 'get_pelt_halflife' kernel test robot
2022-01-01 18:10 ` kernel test robot
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.