summaryrefslogtreecommitdiffstats
path: root/include/linux/rcutree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-21 12:49:13 -0800
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-01-10 19:07:56 -0800
commit9733e4f0a973a354034f5dd603b4142a3095c85f (patch)
treecf272877ec7a0e2ddf0cafdd78663ed38a32805e /include/linux/rcutree.h
parent79619cf5151257f82a4c016b02283e2ceb4b63ce (diff)
downloadlinux-9733e4f0a973a354034f5dd603b4142a3095c85f.tar.gz
linux-9733e4f0a973a354034f5dd603b4142a3095c85f.tar.bz2
linux-9733e4f0a973a354034f5dd603b4142a3095c85f.zip
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/rcutree.h')
-rw-r--r--include/linux/rcutree.h6
1 files changed, 3 insertions, 3 deletions
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);
extern unsigned long rcutorture_testseq;
extern unsigned long rcutorture_vernum;
-long rcu_batches_completed(void);
-long rcu_batches_completed_bh(void);
-long rcu_batches_completed_sched(void);
+unsigned long rcu_batches_completed(void);
+unsigned long rcu_batches_completed_bh(void);
+unsigned long rcu_batches_completed_sched(void);
void show_rcu_gp_kthreads(void);
void rcu_force_quiescent_state(void);