5 if [[ "$file" = "" ]] ; then
6 echo "Usage: $0 <file with smatch messages>"
11 remove
=$
(echo ${bin_dir}/..
/smatch_data
/kernel.bit_shifters.remove
)
12 tmp
=$
(mktemp
/tmp
/smatch.XXXX
)
14 echo "// list of macros used as shifters." \
16 echo '// generated by `gen_bit_shifters.sh`' >> kernel.bit_shifters
17 grep "info: bit shifter" $file | cut
-s -d "'" -f 2- |
sed -e "s/'//g" |
sort -u > $tmp
19 cat $tmp $remove $remove 2> /dev
/null |
sort |
uniq -u >> kernel.bit_shifters
21 echo "Done. List saved as 'kernel.bit_shifters'"