Use coccinelle to check patch in Ubuntu 14.04

来源:互联网 发布:主机所在域的域名 编辑:程序博客网 时间:2024/06/14 21:06

Use coccinelle to check patch in Ubuntu 14.04

In Ubuntu14.04, when running coccinelle, it will fail. So we install it manually
to make patch check.

  1. install from its git repo: https://github.com/coccinelle/coccinelle.git

  2. install the packedge mention in install.txt

  3. ./autogen
    ./configure
    ./make
    ./make install

  4. cd 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