> Would you like to try another SmPL script variant out?

@replacement@
constant text;
expression value;
@@
 .driver = {
-          .name = text,
-          .of_match_table = value,
-          },
+          .name = text,
+          .of_match_table = of_match_ptr(value),
+          },


How do you think about the following response by the Coccinelle software?

elfring@Sonne:~/Projekte/Linux/next-patched> spatch 
~/Projekte/Coccinelle/Probe/Weigelt9.cocci sound/soc/codecs/pcm3060-i2c.c
…
minus: parse error:
  File "/home/elfring/Projekte/Coccinelle/Probe/Weigelt9.cocci", line 5, column 
1, charpos = 51
  around = '.',
  whole content =  .driver = {


Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to