All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Paul E. McKenney" <paulmck@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: Re: [rcu:dev.2021.08.25a 99/115] kernel/time/hrtimer.c:1478:7: warning: no previous prototype for '__run_hrtimer_get_debug'
Date: Thu, 2 Sep 2021 15:11:25 -0700	[thread overview]
Message-ID: <20210902221125.GQ4156@paulmck-ThinkPad-P17-Gen-1> (raw)
In-Reply-To: <202109030640.6NuTjfs6-lkp@intel.com>

On Fri, Sep 03, 2021 at 06:01:47AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.08.25a
> head:   2ba1d046d9bc5b4496027d120e3ddcdfbb2fe9f4
> commit: b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf [99/115] EXP cpu: Print out last hrtimer handler

This is a debug-only commit, and will not go to mainline.  Plus I am
getting rid of it soon.  (Famous last words...)

							Thanx, Paul

> config: i386-tinyconfig (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
>         # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf
>         git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
>         git fetch --no-tags rcu dev.2021.08.25a
>         git checkout b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf
>         # save the attached .config to linux build tree
>         make W=1 ARCH=i386 
> 
> 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/time/hrtimer.c:120:21: warning: initialized field overwritten [-Woverride-init]
>      120 |  [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
>          |                     ^~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:120:21: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
>    kernel/time/hrtimer.c:121:22: warning: initialized field overwritten [-Woverride-init]
>      121 |  [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
>          |                      ^~~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:121:22: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
>    kernel/time/hrtimer.c:122:21: warning: initialized field overwritten [-Woverride-init]
>      122 |  [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
>          |                     ^~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:122:21: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
>    kernel/time/hrtimer.c:123:17: warning: initialized field overwritten [-Woverride-init]
>      123 |  [CLOCK_TAI]  = HRTIMER_BASE_TAI,
>          |                 ^~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:123:17: note: (near initialization for 'hrtimer_clock_to_base_table[11]')
> >> kernel/time/hrtimer.c:1478:7: warning: no previous prototype for '__run_hrtimer_get_debug' [-Wmissing-prototypes]
>     1478 | void *__run_hrtimer_get_debug(int cpu)
>          |       ^~~~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c: In function '__run_hrtimer':
>    kernel/time/hrtimer.c:1507:7: warning: variable 'expires_in_hardirq' set but not used [-Wunused-but-set-variable]
>     1507 |  bool expires_in_hardirq;
>          |       ^~~~~~~~~~~~~~~~~~
> 
> 
> vim +/__run_hrtimer_get_debug +1478 kernel/time/hrtimer.c
> 
>   1477	
> > 1478	void *__run_hrtimer_get_debug(int cpu)
>   1479	{
>   1480		return READ_ONCE(per_cpu(__run_hrtimer_fn, cpu));
>   1481	}
>   1482	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



WARNING: multiple messages have this Message-ID (diff)
From: Paul E. McKenney <paulmck@kernel.org>
To: kbuild-all@lists.01.org
Subject: Re: [rcu:dev.2021.08.25a 99/115] kernel/time/hrtimer.c:1478:7: warning: no previous prototype for '__run_hrtimer_get_debug'
Date: Thu, 02 Sep 2021 15:11:25 -0700	[thread overview]
Message-ID: <20210902221125.GQ4156@paulmck-ThinkPad-P17-Gen-1> (raw)
In-Reply-To: <202109030640.6NuTjfs6-lkp@intel.com>

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

On Fri, Sep 03, 2021 at 06:01:47AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.08.25a
> head:   2ba1d046d9bc5b4496027d120e3ddcdfbb2fe9f4
> commit: b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf [99/115] EXP cpu: Print out last hrtimer handler

This is a debug-only commit, and will not go to mainline.  Plus I am
getting rid of it soon.  (Famous last words...)

							Thanx, Paul

> config: i386-tinyconfig (attached as .config)
> compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
> reproduce (this is a W=1 build):
>         # https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git/commit/?id=b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf
>         git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
>         git fetch --no-tags rcu dev.2021.08.25a
>         git checkout b5d3ff1ac4a5c2cad4fe4c253029971886ff7fcf
>         # save the attached .config to linux build tree
>         make W=1 ARCH=i386 
> 
> 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/time/hrtimer.c:120:21: warning: initialized field overwritten [-Woverride-init]
>      120 |  [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME,
>          |                     ^~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:120:21: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
>    kernel/time/hrtimer.c:121:22: warning: initialized field overwritten [-Woverride-init]
>      121 |  [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
>          |                      ^~~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:121:22: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
>    kernel/time/hrtimer.c:122:21: warning: initialized field overwritten [-Woverride-init]
>      122 |  [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME,
>          |                     ^~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:122:21: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
>    kernel/time/hrtimer.c:123:17: warning: initialized field overwritten [-Woverride-init]
>      123 |  [CLOCK_TAI]  = HRTIMER_BASE_TAI,
>          |                 ^~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c:123:17: note: (near initialization for 'hrtimer_clock_to_base_table[11]')
> >> kernel/time/hrtimer.c:1478:7: warning: no previous prototype for '__run_hrtimer_get_debug' [-Wmissing-prototypes]
>     1478 | void *__run_hrtimer_get_debug(int cpu)
>          |       ^~~~~~~~~~~~~~~~~~~~~~~
>    kernel/time/hrtimer.c: In function '__run_hrtimer':
>    kernel/time/hrtimer.c:1507:7: warning: variable 'expires_in_hardirq' set but not used [-Wunused-but-set-variable]
>     1507 |  bool expires_in_hardirq;
>          |       ^~~~~~~~~~~~~~~~~~
> 
> 
> vim +/__run_hrtimer_get_debug +1478 kernel/time/hrtimer.c
> 
>   1477	
> > 1478	void *__run_hrtimer_get_debug(int cpu)
>   1479	{
>   1480		return READ_ONCE(per_cpu(__run_hrtimer_fn, cpu));
>   1481	}
>   1482	
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org


  reply	other threads:[~2021-09-02 22:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 22:01 [rcu:dev.2021.08.25a 99/115] kernel/time/hrtimer.c:1478:7: warning: no previous prototype for '__run_hrtimer_get_debug' kernel test robot
2021-09-02 22:01 ` kernel test robot
2021-09-02 22:11 ` Paul E. McKenney [this message]
2021-09-02 22:11   ` Paul E. McKenney

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=20210902221125.GQ4156@paulmck-ThinkPad-P17-Gen-1 \
    --to=paulmck@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    /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.