From: Julia Lawall <Julia.Lawall@inria.fr> Date: 2026-08-27 11:30:02
Replace "expression" with "identifier" in the declaration of hdev.
This is necessary because hdev is used as the name of a function
parameter.
Move the two uses of @p2 to the relevant function names.
Convert <... ...>, meaning that the contained pattern is optional,
to use ..., when any, and exists. This requires that the function
contain calls to hid_hw_start, etc, which reduces the set of files
that are considered for matching against this pattern.
Reported-by: Ricardo Ribalda <redacted>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
scripts/coccinelle/hid/ff_race.cocci | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
Replace "expression" with "identifier" in the declaration of hdev.
This is necessary because hdev is used as the name of a function
parameter.
Move the two uses of @p2 to the relevant function names.
Convert <... ...>, meaning that the contained pattern is optional,
to use ..., when any, and exists. This requires that the function
contain calls to hid_hw_start, etc, which reduces the set of files
that are considered for matching against this pattern.
Reported-by: Ricardo Ribalda <redacted>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>