Skip to contentSkip to conversation

Need help with Coccinelle

DISCUSSION Deepak R Varma 2 participants 2 messages Oct 17, 2020

lore
Share & tools
lore
#0 lore raw

Hello Julia,
I have installed Coccinelle and tried to used it. However, I am not seeing any useful outcome of running the Coccinelle commands. For example, I ran the following test but did not see either an error or output. Can you please suggest what may be wrong here?

make coccicheck COCCI=scripts/coccinelle/api/err_cast.cocci MODE=patch M=drivers/gpio/ j=8

Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it.

Thank you,
Deepak.

#1 lore raw
Quoted 10 lines · Deepak R Varma

Hello Julia,
I have installed Coccinelle and tried to used it. However, I am not seeing any useful outcome of running the Coccinelle commands. For example, I ran the following test but did not see either an error or output. Can you please suggest what may be wrong here?

make coccicheck COCCI=scripts/coccinelle/api/err_cast.cocci MODE=patch M=drivers/gpio/ j=8

Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it.

I think that there is just no opportunity for this rule in this code.

julia