From: Joel Fernandes <joel@joelfernandes.org>
To: kbuild-all@lists.01.org
Subject: Re: [peterz-queue:sched/core-sched 4/12] kernel/sched/core.c:123:6: warning: no previous prototype for 'sched_core_get'
Date: Tue, 24 Nov 2020 15:52:57 -0500 [thread overview]
Message-ID: <20201124205257.GC812262@google.com> (raw)
In-Reply-To: <20201124204302.GA1941016@google.com>
[-- Attachment #1: Type: text/plain, Size: 2569 bytes --]
On Tue, Nov 24, 2020 at 03:43:02PM -0500, Joel Fernandes wrote:
> On Wed, Nov 25, 2020 at 03:22:48AM +0800, kernel test robot wrote:
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core-sched
> > head: 7b55b5ef19fbadf111b8d60d320437bfc0467a79
> > commit: 636f9841873bff3684ee81155804b796d58408a4 [4/12] sched: Core-wide rq->lock
> > config: powerpc-allyesconfig (attached as .config)
> > compiler: powerpc64-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=636f9841873bff3684ee81155804b796d58408a4
> > 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 636f9841873bff3684ee81155804b796d58408a4
> > # save the attached .config to linux build tree
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
> >
> > 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:2900:6: warning: no previous prototype for 'sched_set_stop_task' [-Wmissing-prototypes]
> > 2900 | void sched_set_stop_task(int cpu, struct task_struct *stop)
> > | ^~~~~~~~~~~~~~~~~~~
>
> At least this sched_set_stop_task one is not a recently introduced warning.
>
> This prototype warning does seem bogus though. Do we fix it? Obvious quick
> fix is the declar sched_core_{get,put}() in sched.h to pacify the compiler.
BTW, I did add it to my tree already in:
93de21e503a3 ("sched: Move core-scheduler interfacing code to a new file")
https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git/log/?h=coresched
Until the interface patches are in, we could define sched_core_get/put with
"__maybe_unused static" to silence the warnings.
thanks,
- Joel
next prev parent reply other threads:[~2020-11-24 20:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <202011250343.EPLZDqfG-lkp@intel.com>
2020-11-24 20:43 ` [peterz-queue:sched/core-sched 4/12] kernel/sched/core.c:123:6: warning: no previous prototype for 'sched_core_get' Joel Fernandes
2020-11-24 20:52 ` Joel Fernandes [this message]
2020-11-26 20:29 kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-01-26 17:02 kernel test robot
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=20201124205257.GC812262@google.com \
--to=joel@joelfernandes.org \
--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.