diff mbox

[2/3] checkpatch: remove cunit warnings

Message ID 1431514161-19352-3-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov May 13, 2015, 10:49 a.m. UTC
Take CU init commit.
CUnit names all it's functions with CU_. For check patch is
is camelcase, which is not proper odp syntax. This patch
turns off camelcase warnings for functions/types beginning
with CU_.

	Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
	Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

Conflicts:
	scripts/checkpatch.pl
---
 scripts/checkpatch.pl | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 89b1df4..b5e8c93 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -4252,6 +4252,7 @@  sub process {
 #Ignore SI style variants like nS, mV and dB (ie: max_uV, regulator_min_uA_show)
 			    $var !~ /^(?:[a-z_]*?)_?[a-z][A-Z](?:_[a-z_]+)?$/ &&
 #Ignore some three character SI units explicitly, like MiB and KHz
+			    $var !~ /\bCU_/ &&
 			    $var !~ /^(?:[a-z_]*?)_?(?:[KMGT]iB|[KMGT]?Hz)(?:_[a-z_]+)?$/) {
 				while ($var =~ m{($Ident)}g) {
 					my $word = $1;