Skip to content

coccinelle: Introduce cocci script to detect missing mutext and spin lock initialization

Yuan Can cocci kernel-janitors 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 11 repliesIn review
  2. v22 patches 7 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- remove the redundant matching expression
- remove the redundant asterisk

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2coccinelle: locks: add missing_mutex_init.cocci scriptscripts/coccinelle/locks/missing_mutex_init.cocci+76 -010 replies
2/2coccinelle: locks: add missing_spin_lock_init.cocci scriptscripts/coccinelle/locks/missing_spin_lock_init.cocci+79 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [cocci] [PATCH v3 0/2] coccinelle: Introduce cocci script to detect missing mutext and spin lock initialization

This series introduce two scripts to help detect the use of mutext or spin locks without initialization.
---
changes in v3:
- remove the redundant matching expression
- remove the redundant asterisk

changes in v2:
- adjust commit msg
- add Confidence: tag
- print out more information in the report

Yuan Can (2):
coccinelle: locks: add missing_mutex_init.cocci script
coccinelle: locks: add missing_spin_lock_init.cocci script

 .../coccinelle/locks/missing_mutex_init.cocci | 76 ++++++++++++++++++
 .../locks/missing_spin_lock_init.cocci        | 79 +++++++++++++++++++
 2 files changed, 155 insertions(+)
 create mode 100644 scripts/coccinelle/locks/missing_mutex_init.cocci
 create mode 100644 scripts/coccinelle/locks/missing_spin_lock_init.cocci
Signature · 1 line
2.17.1