mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rcu-tasks: make rcu_tasks_lazy_ms static
@ 2023-08-03  8:06 Jiapeng Chong
  2023-08-03 16:11 ` Joel Fernandes
  0 siblings, 1 reply; 3+ messages in thread
From: Jiapeng Chong @ 2023-08-03  8:06 UTC (permalink / raw)
  To: paulmck
  Cc: frederic, quic_neeraju, joel, josh, boqun.feng, rostedt,
	mathieu.desnoyers, jiangshanlai, qiang.zhang1211, linux-kernel,
	Jiapeng Chong, Abaci Robot

The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the
modification is defined as static.

kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6086
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 kernel/rcu/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
index 83049a893de5..ee1379671798 100644
--- a/kernel/rcu/tasks.h
+++ b/kernel/rcu/tasks.h
@@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
 }
 EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
 
-int rcu_tasks_lazy_ms = -1;
+static int rcu_tasks_lazy_ms = -1;
 module_param(rcu_tasks_lazy_ms, int, 0444);
 
 static int __init rcu_spawn_tasks_kthread(void)
-- 
2.20.1.7.g153144c


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

* Re: [PATCH] rcu-tasks: make rcu_tasks_lazy_ms static
  2023-08-03  8:06 [PATCH] rcu-tasks: make rcu_tasks_lazy_ms static Jiapeng Chong
@ 2023-08-03 16:11 ` Joel Fernandes
  2023-08-03 18:40   ` Paul E. McKenney
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Fernandes @ 2023-08-03 16:11 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: paulmck, frederic, quic_neeraju, josh, boqun.feng, rostedt,
	mathieu.desnoyers, jiangshanlai, qiang.zhang1211, linux-kernel,
	Abaci Robot

On Thu, Aug 3, 2023 at 4:07 AM Jiapeng Chong
<jiapeng.chong@linux.alibaba.com> wrote:
>
> The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the
> modification is defined as static.
>
> kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6086
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>

 - Joel


> ---
>  kernel/rcu/tasks.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
> index 83049a893de5..ee1379671798 100644
> --- a/kernel/rcu/tasks.h
> +++ b/kernel/rcu/tasks.h
> @@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
>  }
>  EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
>
> -int rcu_tasks_lazy_ms = -1;
> +static int rcu_tasks_lazy_ms = -1;
>  module_param(rcu_tasks_lazy_ms, int, 0444);
>
>  static int __init rcu_spawn_tasks_kthread(void)
> --
> 2.20.1.7.g153144c
>

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

* Re: [PATCH] rcu-tasks: make rcu_tasks_lazy_ms static
  2023-08-03 16:11 ` Joel Fernandes
@ 2023-08-03 18:40   ` Paul E. McKenney
  0 siblings, 0 replies; 3+ messages in thread
From: Paul E. McKenney @ 2023-08-03 18:40 UTC (permalink / raw)
  To: Joel Fernandes
  Cc: Jiapeng Chong, frederic, quic_neeraju, josh, boqun.feng, rostedt,
	mathieu.desnoyers, jiangshanlai, qiang.zhang1211, linux-kernel,
	Abaci Robot

On Thu, Aug 03, 2023 at 12:11:41PM -0400, Joel Fernandes wrote:
> On Thu, Aug 3, 2023 at 4:07 AM Jiapeng Chong
> <jiapeng.chong@linux.alibaba.com> wrote:
> >
> > The rcu_tasks_lazy_ms are not used outside the file tasks.h, so the
> > modification is defined as static.
> >
> > kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static?
> >
> > Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> > Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6086
> > Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> 
> Reviewed-by: Joel Fernandes (Google) <joel@joelfernandes.org>

Queued, thank you both!

							Thanx, Paul

>  - Joel
> 
> 
> > ---
> >  kernel/rcu/tasks.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h
> > index 83049a893de5..ee1379671798 100644
> > --- a/kernel/rcu/tasks.h
> > +++ b/kernel/rcu/tasks.h
> > @@ -1084,7 +1084,7 @@ void rcu_barrier_tasks(void)
> >  }
> >  EXPORT_SYMBOL_GPL(rcu_barrier_tasks);
> >
> > -int rcu_tasks_lazy_ms = -1;
> > +static int rcu_tasks_lazy_ms = -1;
> >  module_param(rcu_tasks_lazy_ms, int, 0444);
> >
> >  static int __init rcu_spawn_tasks_kthread(void)
> > --
> > 2.20.1.7.g153144c
> >

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

end of thread, other threads:[~2023-08-03 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-03  8:06 [PATCH] rcu-tasks: make rcu_tasks_lazy_ms static Jiapeng Chong
2023-08-03 16:11 ` Joel Fernandes
2023-08-03 18:40   ` 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

all inboxes | Powered by JetHome®