aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-21 15:49:13 -0500
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-01-10 22:07:56 -0500
commit9733e4f0a973a354034f5dd603b4142a3095c85f (patch)
treecf272877ec7a0e2ddf0cafdd78663ed38a32805e /include/linux
parent79619cf5151257f82a4c016b02283e2ceb4b63ce (diff)
rcu: Make _batches_completed() functions return unsigned long
Long ago, the various ->completed fields were of type long, but now are unsigned long due to signed-integer-overflow concerns. However, the various _batches_completed() functions remained of type long, even though their only purpose in life is to return the corresponding ->completed field. This patch cleans this up by changing these functions' return types to unsigned long. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/rcutiny.h4
-rw-r--r--include/linux/rcutree.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/rcutiny.h b/include/linux/rcutiny.h
index 0e5366200154..91f7e4c37800 100644
--- a/include/linux/rcutiny.h
+++ b/include/linux/rcutiny.h
@@ -94,7 +94,7 @@ static inline void rcu_virt_note_context_switch(int cpu)
94/* 94/*
95 * Return the number of grace periods. 95 * Return the number of grace periods.
96 */ 96 */
97static inline long rcu_batches_completed(void) 97static inline unsigned long rcu_batches_completed(void)
98{ 98{
99 return 0; 99 return 0;
100} 100}
@@ -102,7 +102,7 @@ static inline long rcu_batches_completed(void)
102/* 102/*
103 * Return the number of bottom-half grace periods. 103 * Return the number of bottom-half grace periods.
104 */ 104 */
105static inline long rcu_batches_completed_bh(void) 105static inline unsigned long rcu_batches_completed_bh(void)
106{ 106{
107 return 0; 107 return 0;
108} 108}
diff --git a/include/linux/rcutree.h b/include/linux/rcutree.h
index 52953790dcca..9885bfb6b123 100644
--- a/include/linux/rcutree.h
+++ b/include/linux/rcutree.h
@@ -81,9 +81,9 @@ void cond_synchronize_rcu(unsigned long oldstate);
81 81
82extern unsigned long rcutorture_testseq; 82extern unsigned long rcutorture_testseq;
83extern unsigned long rcutorture_vernum; 83extern unsigned long rcutorture_vernum;
84long rcu_batches_completed(void); 84unsigned long rcu_batches_completed(void);
85long rcu_batches_completed_bh(void); 85unsigned long rcu_batches_completed_bh(void);
86long rcu_batches_completed_sched(void); 86unsigned long rcu_batches_completed_sched(void);
87void show_rcu_gp_kthreads(void); 87void show_rcu_gp_kthreads(void);
88 88
89void rcu_force_quiescent_state(void); 89void rcu_force_quiescent_state(void);