summaryrefslogtreecommitdiffstats
path: root/kernel/rcu/tree.h
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2014-11-21 21:49:13 +0100
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-01-11 04:07:56 +0100
commit9733e4f0a973a354034f5dd603b4142a3095c85f (patch)
treecf272877ec7a0e2ddf0cafdd78663ed38a32805e /kernel/rcu/tree.h
parentrcutorture: Issue warnings on close calls due to Reader Batch blows (diff)
downloadlinux-9733e4f0a973a354034f5dd603b4142a3095c85f.tar.xz
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 'kernel/rcu/tree.h')
-rw-r--r--kernel/rcu/tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h
index 8e7b1843896e..1a07d7379ac6 100644
--- a/kernel/rcu/tree.h
+++ b/kernel/rcu/tree.h
@@ -546,7 +546,7 @@ DECLARE_PER_CPU(char, rcu_cpu_has_work);
/* Forward declarations for rcutree_plugin.h */
static void rcu_bootup_announce(void);
-long rcu_batches_completed(void);
+unsigned long rcu_batches_completed(void);
static void rcu_preempt_note_context_switch(void);
static int rcu_preempt_blocked_readers_cgp(struct rcu_node *rnp);
#ifdef CONFIG_HOTPLUG_CPU