install from its git repo: https://github.com/coccinelle/coccinelle.git
install the packedge mention in install.txt
./autogen
./configure
./make
./make installcd in a kernel directory, run:
make coccicheck MODE=report M=arch/arm64/mm
It will check all the patch under, e.g. arch/arm64/mm