Commit f8cfa46
lockdep: Add lockdep lock state defines
Adds defines for lock state returns from lock_is_held_type() based on
Johannes Berg's suggestions as it make it easier to read and maintain
the lock states. These are defines and a enum to avoid changes to
lock_is_held_type() and lockdep_is_held() return types.
Updates to lock_is_held_type() and __lock_is_held() to use the new
defines.
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/linux-wireless/871rdmu9z9.fsf@codeaurora.org/1 parent 3e31f94 commit f8cfa46
2 files changed
Lines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
271 | 276 | | |
272 | 277 | | |
273 | 278 | | |
| |||
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
305 | | - | |
| 310 | + | |
| 311 | + | |
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
309 | | - | |
| 315 | + | |
| 316 | + | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
5252 | 5253 | | |
5253 | 5254 | | |
5254 | 5255 | | |
5255 | | - | |
| 5256 | + | |
5256 | 5257 | | |
5257 | | - | |
| 5258 | + | |
5258 | 5259 | | |
5259 | 5260 | | |
5260 | 5261 | | |
5261 | | - | |
| 5262 | + | |
5262 | 5263 | | |
5263 | 5264 | | |
5264 | 5265 | | |
| |||
5537 | 5538 | | |
5538 | 5539 | | |
5539 | 5540 | | |
5540 | | - | |
| 5541 | + | |
5541 | 5542 | | |
5542 | 5543 | | |
5543 | 5544 | | |
5544 | 5545 | | |
5545 | 5546 | | |
5546 | 5547 | | |
5547 | | - | |
| 5548 | + | |
5548 | 5549 | | |
5549 | 5550 | | |
5550 | 5551 | | |
| |||
0 commit comments