metag/setup: Restrict scope for the capabilities variable
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 8 May 2013 15:38:58 +0000 (16:38 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Thu, 13 Jun 2013 11:55:29 +0000 (12:55 +0100)
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/kernel/setup.c

index e18cebb076bf7cd75d8433cfcd6bfc6390602120..c396cd0b425f4ecc6739b2fcb831eda303b574fb 100644 (file)
@@ -591,20 +591,20 @@ PTBI pTBI_get(unsigned int cpu)
 EXPORT_SYMBOL(pTBI_get);
 
 #if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU)
-char capabilites[] = "dsp fpu";
+static char capabilities[] = "dsp fpu";
 #elif defined(CONFIG_METAG_DSP)
-char capabilites[] = "dsp";
+static char capabilities[] = "dsp";
 #elif defined(CONFIG_METAG_FPU)
-char capabilites[] = "fpu";
+static char capabilities[] = "fpu";
 #else
-char capabilites[] = "";
+static char capabilities[] = "";
 #endif
 
 static struct ctl_table caps_kern_table[] = {
        {
                .procname       = "capabilities",
-               .data           = capabilites,
-               .maxlen         = sizeof(capabilites),
+               .data           = capabilities,
+               .maxlen         = sizeof(capabilities),
                .mode           = 0444,
                .proc_handler   = proc_dostring,
        },