linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Smatch 1.58 released
@ 2013-02-11  7:14 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-02-11  7:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel-janitors, smatch

Smatch is a C static analysis tool, but with a lot of kernel
specific checks.

The big thing in this release is that the type information has now
been pushed to the lowest levels.  It broke a bunch of stuff
including to compiles on older versions of GCC but Emil Tantilov
fixed that (thanks!).  It should be Ok now.

Other changes are that the cross function tracking has been
improved (this requires the database).  There is a new check for
sprintf() overflows.

The way to use Smatch is:

	git clone git://repo.or.cz/smatch.git
	cd smatch
	make
	cd ~/path/to/kernel

	[ This next step is optional if you want to build the
	  database.  If you build it several times the database
  	  becomes more complete. ]
  	~/path/to/smatch/smatch_scripts/build_kernel_data.sh

	~/path/to/smatch/smatch_scripts/test_kernel.sh

It creates warns.txt file with all the warnings.  Or alternatively
if you just want to check one file then the command is:

	~/progs/smatch/devel/smatch_scripts/kchecker drivers/file.c

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-11  7:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-11  7:14 Smatch 1.58 released Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).