From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [qais-yousef:pelt-halflife-sysctl 11/12] kernel/sched/pelt.c:480:5: warning: no previous prototype for function 'update_pelt_halflife'
Date: Sat, 30 Jan 2021 06:05:53 +0800 [thread overview]
Message-ID: <202101300652.zIIbJPqm-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-01-29 22:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202101300652.zIIbJPqm-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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: link
Be 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.