[RFC RESEND tip 3/5] lockdep: Demagic the return value of BFS

2017-08-28 Thread Boqun Feng
__bfs() could return four magic numbers: 1: search succeeds, but none match. 0: search succeeds, find one match. -1: search fails because of the cq is full. -2: search fails because a invalid node is found. This patch cleans things up by making a enum type for the

[RFC RESEND tip 3/5] lockdep: Demagic the return value of BFS

2017-08-28 Thread Boqun Feng
__bfs() could return four magic numbers: 1: search succeeds, but none match. 0: search succeeds, find one match. -1: search fails because of the cq is full. -2: search fails because a invalid node is found. This patch cleans things up by making a enum type for the