[Intel-gfx] [dim PATCH 3/7] dim: only issue warnings on new BUG macros

Jani Nikula jani.nikula at intel.com
Thu Mar 23 10:06:18 UTC 2017


We apply the patch regardless of the warn_or_fail result, so just switch
to using an error message.

Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index 268bc6ca280d..e6943d34c43f 100755
--- a/dim
+++ b/dim
@@ -1112,7 +1112,7 @@ function checkpatch_commit
 	$cmd | scripts/checkpatch.pl -q --emacs --strict - || true
 
 	if bug_lines=$($cmd | grep -m 1 -B 1 '^\+.*\WBUG' | grep -c '^[+-].*\WBUG') && [[ "$bug_lines" = "1" ]]; then
-		warn_or_fail "New BUG macro added"
+		echoerr "WARNING: New BUG macro added"
 	fi
 }
 
-- 
2.1.4



More information about the Intel-gfx mailing list