[U-Boot] [PATCH 1/1] Makefile: add coccicheck target

Simon Glass sjg at chromium.org
Fri Nov 17 14:06:07 UTC 2017


On 10 November 2017 at 11:54, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> Coccinelle is a program for static code analysis.
> For details on Coccinelle see
>
>         http://coccinelle.lip6.fr/
>
> Add scripts/coccicheck and Documentation/dev-tools/coccinelle.rst
> copied from Linux kernel v4.14-rc8.
>
> The coccicheck script executes the tests *.cocci in
> directory scripts/coccinelle by calling spatch.
>
> In Makefile add a coccicheck target. You can use it with
>
>         make coccicheck MODE=<mode>
>
> where mode in patch, report, context, org.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> The patch depends on
>
> [PATCH v2 1/1] scripts/ld-version.sh: regular expression compile fails
> https://patchwork.ozlabs.org/patch/836029/
> ---
>  Documentation/dev-tools/coccinelle.rst | 491 +++++++++++++++++++++++++++++++++
>  Makefile                               |   9 +
>  scripts/coccicheck                     | 256 +++++++++++++++++
>  3 files changed, 756 insertions(+)
>  create mode 100644 Documentation/dev-tools/coccinelle.rst
>  create mode 100755 scripts/coccicheck

Can you please put the docs in the doc/ directory?

Otherwise:

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list