scripts: checkpatch: Add Warn title check

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ic590911284ef8ada109c07b059fdafd2ea098de2
This commit is contained in:
Joseph Chen
2023-04-19 02:17:51 +00:00
parent 5a9f2296ee
commit 2bef28e816

View File

@@ -69,6 +69,11 @@ function check_doc()
fi
# check title
if grep -Eq '### WARN|### WARNING|### Warning|### warn|### warning' ${DIFF_DOC_ALL} ; then
echo "ERROR: ${DOC}: Please use '### Warn'"
exit 1
fi
if grep -Eq '### NEW|### new' ${DIFF_DOC_ALL} ; then
echo "ERROR: ${DOC}: Please use '### New'"
exit 1