RCU Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH tip/core/rcu 1/1] rcu: Remove unused function rcutorture_record_progress
@ 2019-08-01 21:00 Ethan Hansen
  2019-08-01 23:22 ` Paul E. McKenney
  0 siblings, 1 reply; 2+ messages in thread
From: Ethan Hansen @ 2019-08-01 21:00 UTC (permalink / raw)
  To: rcu
  Cc: linux-kernel, paulmck, josh, rostedt, mathieu.desnoyers,
	jiangshanlai, joel, Ethan Hansen

The function rcutorture_record_progress is declared in rcu.h,
but is never used. Remove rcutorture_record_progress to clean code.

Signed-off-by: Ethan Hansen <1ethanhansen@gmail.com>
---
 kernel/rcu/rcu.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
index 8fd4f82..aeec70f 100644
--- a/kernel/rcu/rcu.h
+++ b/kernel/rcu/rcu.h
@@ -455,7 +455,6 @@ enum rcutorture_type {
 #if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU)
 void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags,
 			    unsigned long *gp_seq);
-void rcutorture_record_progress(unsigned long vernum);
 void do_trace_rcu_torture_read(const char *rcutorturename,
 			       struct rcu_head *rhp,
 			       unsigned long secs,
@@ -468,7 +467,6 @@ static inline void rcutorture_get_gp_data(enum rcutorture_type test_type,
 	*flags = 0;
 	*gp_seq = 0;
 }
-static inline void rcutorture_record_progress(unsigned long vernum) { }
 #ifdef CONFIG_RCU_TRACE
 void do_trace_rcu_torture_read(const char *rcutorturename,
 			       struct rcu_head *rhp,
-- 
1.8.3.1


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

* Re: [PATCH tip/core/rcu 1/1] rcu: Remove unused function rcutorture_record_progress
  2019-08-01 21:00 [PATCH tip/core/rcu 1/1] rcu: Remove unused function rcutorture_record_progress Ethan Hansen
@ 2019-08-01 23:22 ` Paul E. McKenney
  0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2019-08-01 23:22 UTC (permalink / raw)
  To: Ethan Hansen
  Cc: rcu, linux-kernel, josh, rostedt, mathieu.desnoyers, jiangshanlai, joel

On Thu, Aug 01, 2019 at 02:00:40PM -0700, Ethan Hansen wrote:
> The function rcutorture_record_progress is declared in rcu.h,
> but is never used. Remove rcutorture_record_progress to clean code.
> 
> Signed-off-by: Ethan Hansen <1ethanhansen@gmail.com>

Good eyes!  Queued, likely for v5.5, thank you!

							Thanx, Paul

> ---
>  kernel/rcu/rcu.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/kernel/rcu/rcu.h b/kernel/rcu/rcu.h
> index 8fd4f82..aeec70f 100644
> --- a/kernel/rcu/rcu.h
> +++ b/kernel/rcu/rcu.h
> @@ -455,7 +455,6 @@ enum rcutorture_type {
>  #if defined(CONFIG_TREE_RCU) || defined(CONFIG_PREEMPT_RCU)
>  void rcutorture_get_gp_data(enum rcutorture_type test_type, int *flags,
>  			    unsigned long *gp_seq);
> -void rcutorture_record_progress(unsigned long vernum);
>  void do_trace_rcu_torture_read(const char *rcutorturename,
>  			       struct rcu_head *rhp,
>  			       unsigned long secs,
> @@ -468,7 +467,6 @@ static inline void rcutorture_get_gp_data(enum rcutorture_type test_type,
>  	*flags = 0;
>  	*gp_seq = 0;
>  }
> -static inline void rcutorture_record_progress(unsigned long vernum) { }
>  #ifdef CONFIG_RCU_TRACE
>  void do_trace_rcu_torture_read(const char *rcutorturename,
>  			       struct rcu_head *rhp,
> -- 
> 1.8.3.1
> 

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-01 21:00 [PATCH tip/core/rcu 1/1] rcu: Remove unused function rcutorture_record_progress Ethan Hansen
2019-08-01 23:22 ` Paul E. McKenney

RCU Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/rcu/0 rcu/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 rcu rcu/ https://lore.kernel.org/rcu \
		rcu@vger.kernel.org rcu@archiver.kernel.org
	public-inbox-index rcu


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.rcu


AGPL code for this site: git clone https://public-inbox.org/ public-inbox