Hi, I just ran this spatch (still using v0.2.2):
@@ struct of_device *ofdev; @@ - ofdev->node + ofdev->dev.of_node It worked (simple as it is) but took surprsingly long. I then used -parse_cocci which gave me: @@ rule starting on line 1 @@ ( -rule starting on line 1:ofdev >>> rule starting on line 1:ofdev->dev.of_node -->-node | -rule starting on line 1:ofdev >>> rule starting on line 1:ofdev->dev.of_node -[-rule starting on line 1:_E2_0-]-.-node ) grep tokens .node ->node Now I wondered if 'struct of_device' could not be recognized as a grep-token? Kind regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |
signature.asc
Description: Digital signature
_______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
