From 3305ab4670e0b66113547451a11b248579bf6314 Mon Sep 17 00:00:00 2001 From: Joe Eloff Date: Mon, 9 Aug 2010 17:21:00 -0700 Subject: [PATCH] --- yaml --- r: 207337 b: refs/heads/master c: 5150bda43c58cdce7eb851c3fe2ca913524459a0 h: refs/heads/master i: 207335: baab3cedc63954c4d63767c9c2c15dd509b4b7b7 v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index c14ab0601326..9ef5142b1bea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5f7ddae6104d85e27c0fbcb508cfe8286a01a5e1 +refs/heads/master: 5150bda43c58cdce7eb851c3fe2ca913524459a0 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index d7a44fd3b224..25d716cc44dc 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -1791,9 +1791,9 @@ sub process { WARN("EXPORT_SYMBOL(foo); should immediately follow its function/variable\n" . $herecurr); } -# check for external initialisers. +# check for global initialisers. if ($line =~ /^.$Type\s*$Ident\s*(?:\s+$Modifier)*\s*=\s*(0|NULL|false)\s*;/) { - ERROR("do not initialise externals to 0 or NULL\n" . + ERROR("do not initialise globals to 0 or NULL\n" . $herecurr); } # check for static initialisers.