#!/bin/bash

#
# These folders/ did not had any warnings to begin with
#
#conf/ contrib/ ec/ include/ kernel_patches/ kunit/ scripts/ tests/

#
# run as : bash ./9633.sh | sort -n
#

#echo "00 ./kernel-doc -v -none lustre/<folder>/*.c 2>&1 | grep warning | wc -l"
total=0
for i in fid/ fld/ ldlm/ llite/ lfsck/ lmv/ lod/ lov/ mdc/ mdd/ mdt/ mgc/ mgs/ obdclass/ obdecho/ ofd/ osc/ osd-ldiskfs/ osd-zfs/ osp/ ptlrpc/ quota/ target/ utils/; do
	warn_count=$(./kernel-doc -v -none lustre/$i/*.c 2>&1 | grep warning | wc -l)
	echo "$warn_count:$i"
	(( total += warn_count ))
done
echo "$total : Total"
