Re: [PATCH] HID: fix semantic patch and improve its performance

From: Jiri Kosina

Date: Fri Sep 11 2026 - 11:17:28 EST


On Thu, 27 Aug 2026, Julia Lawall wrote:

> 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 <ribalda@xxxxxxxxxxxx>
> Signed-off-by: Julia Lawall <Julia.Lawall@xxxxxxxx>

Applied, thank you.

--
Jiri Kosina
SUSE Labs