Re: [Cocci] Performance issue with quite simple patch?

2021-01-13 Thread Julia Lawall
On Wed, 13 Jan 2021, Maxime Ripard wrote: > Hi! > > I've been trying to get a patch to rename any variable called "state" in > a given set of callbacks. > > This is the patch that I've come up with: > > @ plane_atomic_func @ > identifier helpers; > identifier func; > @@ > > ( > static const st

[Cocci] Performance issue with quite simple patch?

2021-01-13 Thread Maxime Ripard
Hi! I've been trying to get a patch to rename any variable called "state" in a given set of callbacks. This is the patch that I've come up with: @ plane_atomic_func @ identifier helpers; identifier func; @@ ( static const struct drm_plane_helper_funcs helpers = { ..., .atomic_c