linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [rcu:dev.2021.04.20a 98/101] kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration
@ 2021-05-01  1:48 kernel test robot
  2021-05-01  4:26 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2021-05-01  1:48 UTC (permalink / raw)
  To: Paul E. McKenney; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.04.20a
head:   fe7d174b033dcf9367759b3c14febb31525aad39
commit: a1ec494e1eef0c72d8f89bbf916a4b291273d2e5 [98/101] tasks-rcu: Make show_rcu_tasks_gp_kthreads() be static inline
config: arm-spear13xx_defconfig (attached as .config)
compiler: arm-linux-gnueabi-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/paulmck/linux-rcu.git/commit/?id=a1ec494e1eef0c72d8f89bbf916a4b291273d2e5
        git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
        git fetch --no-tags rcu dev.2021.04.20a
        git checkout a1ec494e1eef0c72d8f89bbf916a4b291273d2e5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from kernel/rcu/update.c:584:
>> kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration
    1404 | static inline void show_rcu_tasks_gp_kthreads(void) {}
         |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from kernel/rcu/update.c:49:
   kernel/rcu/rcu.h:440:6: note: previous declaration of 'show_rcu_tasks_gp_kthreads' was here
     440 | void show_rcu_tasks_gp_kthreads(void);
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/show_rcu_tasks_gp_kthreads +1404 kernel/rcu/tasks.h

  1401	
  1402	#else /* #ifdef CONFIG_TASKS_RCU_GENERIC */
  1403	static inline void rcu_tasks_bootup_oddness(void) {}
> 1404	static inline void show_rcu_tasks_gp_kthreads(void) {}

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21184 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [rcu:dev.2021.04.20a 98/101] kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration
  2021-05-01  1:48 [rcu:dev.2021.04.20a 98/101] kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration kernel test robot
@ 2021-05-01  4:26 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2021-05-01  4:26 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, linux-kernel

On Sat, May 01, 2021 at 09:48:46AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2021.04.20a
> head:   fe7d174b033dcf9367759b3c14febb31525aad39
> commit: a1ec494e1eef0c72d8f89bbf916a4b291273d2e5 [98/101] tasks-rcu: Make show_rcu_tasks_gp_kthreads() be static inline
> config: arm-spear13xx_defconfig (attached as .config)
> compiler: arm-linux-gnueabi-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/paulmck/linux-rcu.git/commit/?id=a1ec494e1eef0c72d8f89bbf916a4b291273d2e5
>         git remote add rcu https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git
>         git fetch --no-tags rcu dev.2021.04.20a
>         git checkout a1ec494e1eef0c72d8f89bbf916a4b291273d2e5
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arm 

This has since been obsoleted by b5200edc0c43 ("tasks-rcu: Make
show_rcu_tasks_gp_kthreads() be static inline").

						Thanx, Paul

> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    In file included from kernel/rcu/update.c:584:
> >> kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration
>     1404 | static inline void show_rcu_tasks_gp_kthreads(void) {}
>          |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
>    In file included from kernel/rcu/update.c:49:
>    kernel/rcu/rcu.h:440:6: note: previous declaration of 'show_rcu_tasks_gp_kthreads' was here
>      440 | void show_rcu_tasks_gp_kthreads(void);
>          |      ^~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> vim +/show_rcu_tasks_gp_kthreads +1404 kernel/rcu/tasks.h
> 
>   1401	
>   1402	#else /* #ifdef CONFIG_TASKS_RCU_GENERIC */
>   1403	static inline void rcu_tasks_bootup_oddness(void) {}
> > 1404	static inline void show_rcu_tasks_gp_kthreads(void) {}
> 
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-01  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-01  1:48 [rcu:dev.2021.04.20a 98/101] kernel/rcu/tasks.h:1404:20: error: static declaration of 'show_rcu_tasks_gp_kthreads' follows non-static declaration kernel test robot
2021-05-01  4:26 ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).