Print this page
11972 resync smatch
*** 53,62 ****
--- 53,66 ----
~/progs/smatch/devel/smatch_scripts/kchecker drivers/whatever/
The kchecker script prints its warnings to stdout.
+ The above scripts will ensure that any ARCH or CROSS_COMPILE environment
+ variables are passed to kernel build system - thus allowing for the use of
+ Smatch with kernels that are normally built with cross-compilers.
+
If you are building something else (which is not the Linux kernel) then use
something like:
make CHECK="~/progs/smatch/devel/smatch --full-path" \
CC=~/progs/smatch/devel/smatch/cgcc | tee smatch_warns.txt