Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288245
b: refs/heads/master
c: 9f78ff0
h: refs/heads/master
i:
  288243: a217327
v: v3
  • Loading branch information
Stephen Boyd authored and Linus Torvalds committed Mar 5, 2012
1 parent 314b19c commit 956d564
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9354f1b8e6c55c335d1c4fb10d0ae7a041935240
refs/heads/master: 9f78ff005a6b6313728247113948450b2adddde8
14 changes: 3 additions & 11 deletions trunk/lib/debugobjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,17 +818,9 @@ static int __init fixup_activate(void *addr, enum debug_obj_state state)
if (obj->static_init == 1) {
debug_object_init(obj, &descr_type_test);
debug_object_activate(obj, &descr_type_test);
/*
* Real code should return 0 here ! This is
* not a fixup of some bad behaviour. We
* merily call the debug_init function to keep
* track of the object.
*/
return 1;
} else {
/* Real code needs to emit a warning here */
return 0;
}
return 0;
return 1;

case ODEBUG_STATE_ACTIVE:
debug_object_deactivate(obj, &descr_type_test);
Expand Down Expand Up @@ -967,7 +959,7 @@ static void __init debug_objects_selftest(void)

obj.static_init = 1;
debug_object_activate(&obj, &descr_type_test);
if (check_results(&obj, ODEBUG_STATE_ACTIVE, ++fixups, warnings))
if (check_results(&obj, ODEBUG_STATE_ACTIVE, fixups, warnings))
goto out;
debug_object_init(&obj, &descr_type_test);
if (check_results(&obj, ODEBUG_STATE_INIT, ++fixups, ++warnings))
Expand Down

0 comments on commit 956d564

Please sign in to comment.