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

2021-01-14 Thread Maxime Ripard
Hi Julia, On Wed, Jan 13, 2021 at 11:58:41AM +0100, Julia Lawall wrote: > 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: > > > > @

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

[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 = { ...,