[Cocci] A simple one ...

ron minnich rminnich at gmail.com
Tue Feb 28 00:53:22 CET 2012


@@
local idexpression struct drm_device *n;
identifier func;
identifier dev;
expression p;
@@
-func(n)
+func(void)


Which I'd like to match:

void intel_setup_bios(struct drm_device *dev)

but I get nothing. I also tried
-func(struct drm_device *dev)
where dev is defined as an identifier but ... no good. What am I missing?

ron


More information about the Cocci mailing list