aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2013-05-08 11:38:58 -0400
committerJames Hogan <james.hogan@imgtec.com>2013-06-13 07:55:29 -0400
commit6ce5764dbce55f0231fd5a714c1ff65527032365 (patch)
treefc9c39ad89b92a9f52d5b1180fbd5e7262b6c361 /arch
parent42ad59e37504d52e59926e910c720d3b60158dc9 (diff)
metag/setup: Restrict scope for the capabilities variable
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/metag/kernel/setup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
index e18cebb076bf..c396cd0b425f 100644
--- a/arch/metag/kernel/setup.c
+++ b/arch/metag/kernel/setup.c
@@ -591,20 +591,20 @@ PTBI pTBI_get(unsigned int cpu)
591EXPORT_SYMBOL(pTBI_get); 591EXPORT_SYMBOL(pTBI_get);
592 592
593#if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU) 593#if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU)
594char capabilites[] = "dsp fpu"; 594static char capabilities[] = "dsp fpu";
595#elif defined(CONFIG_METAG_DSP) 595#elif defined(CONFIG_METAG_DSP)
596char capabilites[] = "dsp"; 596static char capabilities[] = "dsp";
597#elif defined(CONFIG_METAG_FPU) 597#elif defined(CONFIG_METAG_FPU)
598char capabilites[] = "fpu"; 598static char capabilities[] = "fpu";
599#else 599#else
600char capabilites[] = ""; 600static char capabilities[] = "";
601#endif 601#endif
602 602
603static struct ctl_table caps_kern_table[] = { 603static struct ctl_table caps_kern_table[] = {
604 { 604 {
605 .procname = "capabilities", 605 .procname = "capabilities",
606 .data = capabilites, 606 .data = capabilities,
607 .maxlen = sizeof(capabilites), 607 .maxlen = sizeof(capabilities),
608 .mode = 0444, 608 .mode = 0444,
609 .proc_handler = proc_dostring, 609 .proc_handler = proc_dostring,
610 }, 610 },