From: Tom Rini Date: Tue, 21 Nov 2017 08:05:46 -0500 Subject: [U-Boot] [U-Boot, 1/1] scripts/coccinelle: add some more coccinelle tests In-Reply-To: <20171110181502.4693-1-xypron.glpk@gmx.de> References: <20171110181502.4693-1-xypron.glpk@gmx.de> Message-ID: <20171121130546.GE10194@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 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: