OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0bc90f
)
rcu: Return bool type in rcu_lockdep_current_cpu_online()
author
Pranith Kumar
<bobby.prani@gmail.com>
Tue, 8 Jul 2014 22:26:18 +0000
(18:26 -0400)
committer
Paul E. McKenney
<paulmck@linux.vnet.ibm.com>
Sun, 7 Sep 2014 23:18:11 +0000
(16:18 -0700)
Return true instead of 1 in rcu_lockdep_current_cpu_online() as this
has bool as return type.
Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
include/linux/rcupdate.h
patch
|
blob
|
history
diff --git
a/include/linux/rcupdate.h
b/include/linux/rcupdate.h
index
d231aa1
..
7e47e44
100644
(file)
--- a/
include/linux/rcupdate.h
+++ b/
include/linux/rcupdate.h
@@
-349,7
+349,7
@@
bool rcu_lockdep_current_cpu_online(void);
#else /* #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU) */
static inline bool rcu_lockdep_current_cpu_online(void)
{
- return
1
;
+ return
true
;
}
#endif /* #else #if defined(CONFIG_HOTPLUG_CPU) && defined(CONFIG_PROVE_RCU) */