]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
arch/x86/mm/pageattr.c: Quiet sparse noise; local functions should be static
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 15 Nov 2011 22:49:00 +0000 (14:49 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 Dec 2011 16:11:05 +0000 (17:11 +0100)
Local functions should be marked static.  This also quiets the
following sparse noise:

  warning: symbol '_set_memory_array' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: hartleys@visionengravers.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c

index f9e526742fa1817750e0cf591d23ca910ab3fbba..eda2acbb6e81b2895e7645bd21fc8624ad355e7e 100644 (file)
@@ -998,7 +998,7 @@ out_err:
 }
 EXPORT_SYMBOL(set_memory_uc);
 
-int _set_memory_array(unsigned long *addr, int addrinarray,
+static int _set_memory_array(unsigned long *addr, int addrinarray,
                unsigned long new_type)
 {
        int i, j;