I've tried the following code, but it does not work as I expected:

Would you like to show the corresponding error message?



@@
declarer DEFINE_PCI_DEVICE_TABLE;
identifier  aaa;
@@

- DEFINE_PCI_DEVICE_TABLE(aaa)
+ struct alx_vendor_info aaa[]
= ...;

How do you think about to omit the equality sign in your filter pattern here?
(I am also unsure if it is supported by the syntax to use it as the first character in a semantic patch code line.)

Do you eventually need to specify further SmPL constraints for your affected identifier?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to