@@ -6324,7 +6324,14 @@ add_cc_volunteer()
local mail_address=$1
echo "CC: $mail_address"
- REPORTED_BY+="Reported-by: $mail_address\n"
+ REPORTED_BY+="Reported-by: $mail_address"$'\n'
+}
+
+email_reported_by_suggestion()
+{
+ echo "If you fix the issue, kindly add following tag"
+ echo "Reported-by: kbuild test robot <lkp@intel.com>"
+ echo "$REPORTED_BY"
}
email_header()
@@ -7782,14 +7789,13 @@ send_email()
cat > $email_file <<EOF
Message-ID: $message_id
$(email_subject)
-$(email_header)
-
-$(email_commit_info)
-
-If you fix the issue, kindly add following tag
-Reported-by: kbuild test robot <lkp@intel.com>
-$(echo -e $REPORTED_BY)
-
+$(
+email_header;
+echo "";
+email_commit_info;
+echo "";
+email_reported_by_suggestion
+)
$(email_errors)
$(email_signature)
@@ -9284,13 +9290,13 @@ email_checkpatch()
LANG=en_US.UTF8 mailx -S sendmail=$C_ROOT/sendmail -t <<EOF
$(email_subject)
-$(email_header)
-
-$(email_commit_info)
-
-If you fix the issue, kindly add following tag
-Reported-by: kbuild test robot <lkp@intel.com>
-
+$(
+email_header;
+echo "";
+email_commit_info;
+echo "";
+email_reported_by_suggestion
+)
scripts/checkpatch.pl $(basename $patch)
# many are suggestions rather than must-fix