linux-mips
[Top] [All Lists]

[PATCH v3] filter local function prefixed by $L

To: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org
Subject: [PATCH v3] filter local function prefixed by $L
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sun, 14 Jun 2009 23:52:54 +0800
Cc: Wang Liming <liming.wang@windriver.com>, Wu Zhangjin <wuzj@lemote.com>, Steven Rostedt <rostedt@goodmis.org>, Ralf Baechle <ralf@linux-mips.org>, Thomas Gleixner <tglx@linutronix.de>, Nicholas Mc Guire <der.herr@hofr.at>, Ingo Molnar <mingo@elte.hu>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=mwuShjwlsRwYAq7uOlwP3n3r9juH/MLxnJOGBA5iGnc=; b=V9cSGK/BgHK37CV2kE96kV0vGToRUXTtBHimJusU14xp7tDZSQJ4jdlNNWeM8RsjKa WqgEFQE78c2FqG3siPSgFMT2Zjt6m2lwxUHz+XbguGCFP9LGh2atF26oGYAgQGWIgstG RtRwUBW5j8CMsWBph1VqbIl4qwXQGfWRQ4qoA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=gv3vZrAHIK/2D7bTq5+aEsabehdfEQ27uVFMGTqkrotGPLcRhvCYhm8qxaEjICWiRX vCun++6F7SDveWEJO0cU73NdWLUsTMC5kq6I/3gs95tbpP/gjchp2WR/pdBxMqR3I12t ec0k375q/VYQ8VdLAQhAlIiTNPTJnJauzlq0E=
In-reply-to: <cover.1244994151.git.wuzj@lemote.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1244994151.git.wuzj@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzj@lemote.com>

this patch fixed the warning as following:

mipsel-linux-gnu-objcopy: 'fs/proc/.tmp_gl_devices.o': No such file
mipsel-linux-gnu-ld: fs/proc/.tmp_gl_devices.o: No such file: No such
file or directory
rm: cannot remove `fs/proc/.tmp_gl_devices.o': No such file or directory
rm: cannot remove `fs/proc/.tmp_mx_devices.o': No such file or directory

the real reason of above warning is that the $Lxx local functions will
be treated as global symbols, so, should be filtered.

Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
 scripts/recordmcount.pl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl
index 533d3bf..542cb04 100755
--- a/scripts/recordmcount.pl
+++ b/scripts/recordmcount.pl
@@ -343,6 +343,10 @@ sub update_funcs
        if (!$use_locals) {
            return;
        }
+       # filter $LXXX tags
+       if ("$ref_func" =~ m/\$L/) {
+               return;
+       }
        $convert{$ref_func} = 1;
     }
 
-- 
1.6.0.4


<Prev in Thread] Current Thread [Next in Thread>