[U-Boot] [U-Boot, 1/1] scripts/coccinelle: add some more coccinelle tests

Tom Rini trini at konsulko.com
Tue Nov 21 13:05:46 UTC 2017


On Fri, Nov 10, 2017 at 07:15:02PM +0100, Heinrich Schuchardt wrote:

> Add some useful static code analysis scripts for coccinelle
> copied from the Linux kernel v4.14-rc8:
> 
> Warn on check against NULL before calling free.
> scripts/coccinelle/free/ifnullfree.cocci
> 
> Detect superfluous NULL check for list iterator.
> scripts/coccinelle/iterators/itnull.cocci
> 
> Check if list iterator is reassigned.
> scripts/coccinelle/iterators/list_entry_update.cocci
> 
> Check if list iterator is used after loop.
> scripts/coccinelle/iterators/use_after_iter.cocci
> 
> Find wrong argument of sizeof in allocation function:
> scripts/coccinelle/misc/badty.cocci
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171121/6fe1a13e/attachment.sig>


More information about the U-Boot mailing list