Skip to contentSkip to conversation

rcu: Remove unused function rcutorture_record_progress

PATCH In review Ethan Hansen 2 participants 2 messages Aug 1, 2019 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rcu: Remove unused function rcutorture_record_progress

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

---
 kernel/rcu/rcu.h | 2 --
 1 file changed, 2 deletions(-)
kernel/rcu/rcu.h +0 -2
index 8fd4f82..aeec70f 100644
@@ -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,
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 4 lines · Ethan Hansen

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

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

Thanx, Paul

Quoted 27 lines
---
 kernel/rcu/rcu.h | 2 --
 1 file changed, 2 deletions(-)
kernel/rcu/rcu.h +0 -2
index 8fd4f82..aeec70f 100644
@@ -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,
Signature · 1 line
1.8.3.1