All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:sched/core-sched 4/12] kernel/sched/core.c:123:6: warning: no previous prototype for 'sched_core_get'
Date: Wed, 27 Jan 2021 01:02:04 +0800	[thread overview]
Message-ID: <202101270157.CNecRJRx-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2539 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core-sched
head:   505afdadb6345844c2db4c74cf2f65504013e8a7
commit: bfc18d532566b96a1c7ac0989d2927f622e7d94c [4/12] sched: Core-wide rq->lock
config: ia64-randconfig-r005-20210126 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.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/peterz/queue.git/commit/?id=bfc18d532566b96a1c7ac0989d2927f622e7d94c
        git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
        git fetch --no-tags peterz-queue sched/core-sched
        git checkout bfc18d532566b96a1c7ac0989d2927f622e7d94c
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

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/core.c:123:6: warning: no previous prototype for 'sched_core_get' [-Wmissing-prototypes]
     123 | void sched_core_get(void)
         |      ^~~~~~~~~~~~~~
>> kernel/sched/core.c:131:6: warning: no previous prototype for 'sched_core_put' [-Wmissing-prototypes]
     131 | void sched_core_put(void)
         |      ^~~~~~~~~~~~~~
   kernel/sched/core.c:2899:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
    2899 | void sched_set_stop_task(int cpu, struct task_struct *stop)
         |      ^~~~~~~~~~~~~~~~~~~
   kernel/sched/core.c: In function 'schedule_tail':
   kernel/sched/core.c:4316:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
    4316 |  struct rq *rq;
         |             ^~


vim +/sched_core_get +123 kernel/sched/core.c

   122	
 > 123	void sched_core_get(void)
   124	{
   125		mutex_lock(&sched_core_mutex);
   126		if (!sched_core_count++)
   127			__sched_core_enable();
   128		mutex_unlock(&sched_core_mutex);
   129	}
   130	
 > 131	void sched_core_put(void)
   132	{
   133		mutex_lock(&sched_core_mutex);
   134		if (!--sched_core_count)
   135			__sched_core_disable();
   136		mutex_unlock(&sched_core_mutex);
   137	}
   138	

---
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: 31287 bytes --]

             reply	other threads:[~2021-01-26 17:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26 17:02 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-11-26 20:29 [peterz-queue:sched/core-sched 4/12] kernel/sched/core.c:123:6: warning: no previous prototype for 'sched_core_get' kernel test robot
     [not found] <202011250343.EPLZDqfG-lkp@intel.com>
2020-11-24 20:43 ` Joel Fernandes
2020-11-24 20:52   ` Joel Fernandes

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=202101270157.CNecRJRx-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.