* [qais-yousef:pelt-halflife-sysctl 11/12] kernel/sched/pelt.c:480:5: warning: no previous prototype for function 'update_pelt_halflife'
@ 2021-01-29 22:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-29 22:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2426 bytes --]
tree: https://github.com/qais-yousef/linux pelt-halflife-sysctl
head: a84c86d0d71b004bf3a860e817bd36822d4eb698
commit: a1d3ac8f265d561147c8cfb2cc0a3c3e9b864a39 [11/12] sched/pelt: add new sysctl to modify halflife
config: arm64-randconfig-r013-20210130 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 275c6af7d7f1ed63a03d05b4484413e447133269)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/qais-yousef/linux/commit/a1d3ac8f265d561147c8cfb2cc0a3c3e9b864a39
git remote add qais-yousef https://github.com/qais-yousef/linux
git fetch --no-tags qais-yousef pelt-halflife-sysctl
git checkout a1d3ac8f265d561147c8cfb2cc0a3c3e9b864a39
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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:480:5: warning: no previous prototype for function 'update_pelt_halflife' [-Wmissing-prototypes]
int update_pelt_halflife(void *data)
^
kernel/sched/pelt.c:480:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int update_pelt_halflife(void *data)
^
static
1 warning generated.
vim +/update_pelt_halflife +480 kernel/sched/pelt.c
479
> 480 int update_pelt_halflife(void *data)
481 {
482 switch (sysctl_sched_pelt_halflife) {
483 case 32:
484 LOAD_AVG_PERIOD = LOAD_AVG_PERIOD_32;
485 LOAD_AVG_MAX = LOAD_AVG_MAX_32;
486 break;
487 case 16:
488 LOAD_AVG_PERIOD = LOAD_AVG_PERIOD_16;
489 LOAD_AVG_MAX = LOAD_AVG_MAX_16;
490 break;
491 case 8:
492 LOAD_AVG_PERIOD = LOAD_AVG_PERIOD_8;
493 LOAD_AVG_MAX = LOAD_AVG_MAX_8;
494 break;
495 default:
496 return -EINVAL;
497 }
498
499 return 0;
500 }
501
---
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: 28671 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-29 22:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-29 22:05 [qais-yousef:pelt-halflife-sysctl 11/12] kernel/sched/pelt.c:480:5: warning: no previous prototype for function 'update_pelt_halflife' 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.