On 10 November 2017 at 11:54, Heinrich Schuchardt <xypron.g...@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.g...@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 <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot