8 echo "Updates the smatch_data/ directory and builds the smatch database"
13 if [ "$1" = "-h" ] ||
[ "$1" = "--help" ] ; then
17 SCRIPT_DIR
=$
(dirname $0)
18 if [ -e $SCRIPT_DIR/..
/smatch
] ; then
19 CMD
=$SCRIPT_DIR/..
/smatch
20 DATA_DIR
=$SCRIPT_DIR/..
/smatch_data
22 echo "This script should be run from the smatch_scripts/ directory."
26 $SCRIPT_DIR/test_kernel.sh
--call-tree --info --param-mapper --spammy --data=$DATA_DIR
28 for i
in $SCRIPT_DIR/gen_
* ; do
32 mv ${PROJECT}.
* $DATA_DIR
33 mv no_return_funcs
$DATA_DIR/${PROJECT}.no_return_funcs
35 $SCRIPT_DIR/db
/create_db.sh
-p=kernel warns.txt