]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
lockdep: Make __bfs(.match) return bool
authorBoqun Feng <boqun.feng@gmail.com>
Fri, 7 Aug 2020 07:42:27 +0000 (15:42 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 Aug 2020 10:42:05 +0000 (12:42 +0200)
commit61775ed243433ff0556c4f76905929fe01e92922
tree9f3e62725003476bb8631f3be91ece35d86702e2
parent6971c0f345620aae5e6172207a57b7524603a34e
lockdep: Make __bfs(.match) return bool

The "match" parameter of __bfs() is used for checking whether we hit a
match in the search, therefore it should return a boolean value rather
than an integer for better readability.

This patch then changes the return type of the function parameter and the
match functions to bool.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200807074238.1632519-9-boqun.feng@gmail.com
kernel/locking/lockdep.c