Skip to contentSkip to conversation

locking/lockdep: correct the description error for check_redundant()

PATCH In review Xiongwei Song 3 participants 3 messages Jun 17, 2021 – Jun 18, 2021 Locking primitives

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 locking/lockdep: correct the description error for check_redundant()

From: Xiongwei Song <[email protected]>

If there is no matched result, check_redundant() will return BFS_RNOMATCH.

---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -1
index cfe0f4374594..1f126ca7fbd7 100644
@@ -2726,7 +2726,7 @@ static inline bool usage_skip(struct lock_list *entry, void *mask)
  * <target> or not. If it can, <src> -> <target> dependency is already
  * in the graph.
  *
- * Return BFS_RMATCH if it does, or BFS_RMATCH if it does not, return BFS_E* if
+ * Return BFS_RMATCH if it does, or BFS_RNOMATCH if it does not, return BFS_E* if
  * any error appears in the bfs search.
  */
 static noinline enum bfs_result
Signature · 1 line
2.30.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Xiongwei Song

From: Xiongwei Song <[email protected]>

If there is no matched result, check_redundant() will return BFS_RNOMATCH.

Good catch!

Nit: you may want to capitalize the first letter after subsystem tag in the patch title, like:

"locking/lockdep: Correct ..."

Regards,
Boqun

Quoted 20 lines
---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -1
index cfe0f4374594..1f126ca7fbd7 100644
@@ -2726,7 +2726,7 @@ static inline bool usage_skip(struct lock_list *entry, void *mask)
  * <target> or not. If it can, <src> -> <target> dependency is already
  * in the graph.
  *
- * Return BFS_RMATCH if it does, or BFS_RMATCH if it does not, return BFS_E* if
+ * Return BFS_RMATCH if it does, or BFS_RNOMATCH if it does not, return BFS_E* if
  * any error appears in the bfs search.
  */
 static noinline enum bfs_result
Signature · 1 line
2.30.2
#2 lore raw
Quoted 6 lines · Boqun Feng
Quoted 4 lines · Xiongwei Song

From: Xiongwei Song <[email protected]>

If there is no matched result, check_redundant() will return BFS_RNOMATCH.

Quoted 8 lines
Quoted 1 line

Good catch!

Nit: you may want to capitalize the first letter after subsystem tag in the patch title, like:

"locking/lockdep: Correct ..."

Ok. Will update the patch.

Quoted 2 lines

Thank you.

Regards,
Xiongwei

Quoted 24 lines

Regards,
Boqun

Quoted 20 lines
---
 kernel/locking/lockdep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/locking/lockdep.c +1 -2
index cfe0f4374594..1f126ca7fbd7 100644
@@ -2726,7 +2726,7 @@ static inline bool usage_skip(struct lock_list *entry, void *mask)
  * <target> or not. If it can, <src> -> <target> dependency is already
  * in the graph.
  *
- * Return BFS_RMATCH if it does, or BFS_RMATCH if it does not, return BFS_E* if
+ * Return BFS_RMATCH if it does, or BFS_RNOMATCH if it does not, return BFS_E* if
  * any error appears in the bfs search.
  */
 static noinline enum bfs_result
--

2.30.2