diff options
author | Du, Changbin <changbin.du@intel.com> | 2016-05-19 20:09:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-19 22:12:14 -0400 |
commit | 3263d28eb5b93b3c1b024366df87b1d0c774228f (patch) | |
tree | 12b544d9f08537267636d589c0ca5878e220c55c /kernel/rcu | |
parent | e3252464da222ef2c2ca52dff383a824080ea3d5 (diff) |
rcu: update debugobjects fixup callbacks return type
Update the return type to use bool instead of int, corresponding to
cheange (debugobjects: make fixup functions return bool instead of int).
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Josh Triplett <josh@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tejun Heo <tj@kernel.org>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/update.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 3ccdc8eebc5a..a9df198eb22d 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c | |||
@@ -386,7 +386,7 @@ void destroy_rcu_head(struct rcu_head *head) | |||
386 | * - an unknown object is activated (might be a statically initialized object) | 386 | * - an unknown object is activated (might be a statically initialized object) |
387 | * Activation is performed internally by call_rcu(). | 387 | * Activation is performed internally by call_rcu(). |
388 | */ | 388 | */ |
389 | static int rcuhead_fixup_activate(void *addr, enum debug_obj_state state) | 389 | static bool rcuhead_fixup_activate(void *addr, enum debug_obj_state state) |
390 | { | 390 | { |
391 | struct rcu_head *head = addr; | 391 | struct rcu_head *head = addr; |
392 | 392 | ||
@@ -399,9 +399,9 @@ static int rcuhead_fixup_activate(void *addr, enum debug_obj_state state) | |||
399 | */ | 399 | */ |
400 | debug_object_init(head, &rcuhead_debug_descr); | 400 | debug_object_init(head, &rcuhead_debug_descr); |
401 | debug_object_activate(head, &rcuhead_debug_descr); | 401 | debug_object_activate(head, &rcuhead_debug_descr); |
402 | return 0; | 402 | return false; |
403 | default: | 403 | default: |
404 | return 1; | 404 | return true; |
405 | } | 405 | } |
406 | } | 406 | } |
407 | 407 | ||