[Cocci] Discrepancy when using -j with path assumptions

Luis R. Rodriguez mcgrof at suse.com
Thu Jun 18 01:43:11 CEST 2015


If I use this SmPL rule:

mcgrof at drvbp1 ~/build/backports-20150525-ignore-all (git::master)$ cat
0019-usb_driver_lpm.cocci
@@
identifier backport_driver;
@@
struct usb_driver backport_driver = {
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
        .disable_hub_initiated_lpm = 1,
+#endif
...
};

And use it without -j, and later with -j, the -j option fails:

mcgrof at drvbp1 ~/build/backports-20150525-ignore-all (git::master)$
spatch --sp-file 0019-usb_driver_lpm.cocci --in-place
--recursive-includes --relax-include-path --use-coccigrep --timeout
120 --dir drivers/net/wireless/ath/ath9k/

For example works but if I add '-j 32' it complains about not finding
the file 0019-usb_driver_lpm.cocci.

 Luis


More information about the Cocci mailing list