[U-Boot] [PATCH v2 1/1] Makefile: add coccicheck target
Simon Glass
sjg at chromium.org
Tue Nov 21 04:01:48 UTC 2017
On 19 November 2017 at 06:33, 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 copied from Linux kernel v4.14.
>
> 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.
>
> Add a copy of Linux v4.14 file Documentation/dev-tools/coccinelle.rst
> as doc/README.coccinelle.
>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> v2
> Move Documentation/dev-tools/coccinelle.rst to
> doc/README.coccinelle as suggested by Simon Glass.
> ---
> Makefile | 9 +
> doc/README.coccinelle | 491 ++++++++++++++++++++++++++++++++++++++++++++++++++
> scripts/coccicheck | 256 ++++++++++++++++++++++++++
> 3 files changed, 756 insertions(+)
> create mode 100644 doc/README.coccinelle
> create mode 100755 scripts/coccicheck
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list