Skip to contentSkip to conversation

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

PATCH Applied Xiongwei Song 3 participants 3 messages Jun 18, 2021 – Jun 23, 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
#1 lore raw
Quoted 16 lines · Xiongwei Song

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 +0 -0
index cfe0f4374594..1f126ca7fbd7 100644

kernel/locking/lockdep.c static inline bool usage_skip(struct lock_list *entry, void *mask) · line 2732

Quoted 8 lines
kernel/locking/lockdep.c +1 -1
@@ -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

Sorry I forgot to add version info, this is v2. Regarding v1 please see https://lkml.org/lkml/2021/6/17/1156.

Regards,
Xiongwei

Quoted 3 lines

--
2.30.2

merge bot Applied
#2 lore raw
In reply to Xiongwei Song
The following commit has been merged into the locking/core branch of tip:

The following commit has been merged into the locking/core branch of tip:

Commit-ID:     0e8a89d49d45197770f2e57fb15f1bc9ded96eb0
Gitweb:        https://git.kernel.org/tip/0e8a89d49d45197770f2e57fb15f1bc9ded96eb0
Author:        Xiongwei Song <[email protected]>
AuthorDate:    Fri, 18 Jun 2021 21:02:30 +08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Tue, 22 Jun 2021 16:42:09 +02:00

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

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 0584b20..095c87f 100644
@@ -2829,7 +2829,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