Print this page
11506 smatch resync
*** 2,12 ****
TMP_DIR=/tmp
help()
{
! echo "Usage: $0 [--no-compile|--ammend] <filename>"
echo "You must be at the base of the kernel tree to run this."
exit 1
}
continue_yn()
--- 2,12 ----
TMP_DIR=/tmp
help()
{
! echo "Usage: $0 [--no-compile|--amend] <filename>"
echo "You must be at the base of the kernel tree to run this."
exit 1
}
continue_yn()
*** 35,45 ****
while true ; do
if [[ "$1" == "--no-compile" ]] ; then
NO_COMPILE=true
shift
! elif [[ "$1" == "--ammend" ]] ; then
AMEND="--amend"
shift
else
break
fi
--- 35,45 ----
while true ; do
if [[ "$1" == "--no-compile" ]] ; then
NO_COMPILE=true
shift
! elif [[ "$1" == "--amend" ]] ; then
AMEND="--amend"
shift
else
break
fi
*** 51,62 ****
fullname=$1
filename=$(basename $fullname)
oname=$(echo ${fullname/.c/.o})
! MAIL_FILE=$TMP_DIR/${filename}.msg
echo "QC checklist"
qc "Have you handled all the errors properly?"
if git diff $fullname | grep ^+ | grep -qi alloc ; then
qc "Have you freed all your mallocs?"
fi
--- 51,66 ----
fullname=$1
filename=$(basename $fullname)
oname=$(echo ${fullname/.c/.o})
! MSG_FILE=$TMP_DIR/${filename}.msg
! MAIL_FILE=$TMP_DIR/${filename}.mail
+ # heat up the disk cache
+ #git log --oneline $fullname | head -n 10 > /dev/null &
+
echo "QC checklist"
qc "Have you handled all the errors properly?"
if git diff $fullname | grep ^+ | grep -qi alloc ; then
qc "Have you freed all your mallocs?"
fi
*** 69,88 ****
kchecker --sparse --endian $fullname
# rm $oname
# make C=1 CHECK="scripts/coccicheck" $oname
fi
! grepmail $fullname ~/var/mail/sent* | grep -i ^subject || echo -n ""
qc "Looks OK?"
- git log --oneline $fullname | head -n 10
- echo "Copy and paste one of these subjects?"
- read unused
-
git add $fullname
- git commit --signoff $AMEND
to_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | head -n 1)
cc_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | tail -n +2 | \
perl -ne 's/\n$/, /; print')
cc_addr="$cc_addr, kernel-janitors@vger.kernel.org"
--- 73,106 ----
kchecker --sparse --endian $fullname
# rm $oname
# make C=1 CHECK="scripts/coccicheck" $oname
fi
! for file in $(grep -l $fullname ~/var/mail/sent-*) ; do
! grepmail $fullname $file | grep -i ^subject || echo -n ""
! done
qc "Looks OK?"
git add $fullname
+ cat /dev/null > $MSG_FILE
+ if [ "$AMEND" != "" ] ; then
+ git format-patch HEAD^ --stdout >> $MSG_FILE
+ else
+ echo "" >> $MSG_FILE
+ echo "Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>" >> $MSG_FILE
+ echo "" >> $MSG_FILE
+ echo "# $sm_err" >> $MSG_FILE
+ fi
+ git log -10 --oneline $fullname | sed -e 's/^/# /' >> $MSG_FILE
+ vim $MSG_FILE
+
+ grep -v '^#' $MSG_FILE > $MSG_FILE.1
+ mv $MSG_FILE.1 $MSG_FILE
+
+ git commit $AMEND -F $MSG_FILE
+
to_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | head -n 1)
cc_addr=$(./scripts/get_maintainer.pl -f --noroles --norolestats $fullname | tail -n +2 | \
perl -ne 's/\n$/, /; print')
cc_addr="$cc_addr, kernel-janitors@vger.kernel.org"