diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-05-08 11:38:58 -0400 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-06-13 07:55:29 -0400 |
commit | 6ce5764dbce55f0231fd5a714c1ff65527032365 (patch) | |
tree | fc9c39ad89b92a9f52d5b1180fbd5e7262b6c361 /arch | |
parent | 42ad59e37504d52e59926e910c720d3b60158dc9 (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.c | 12 |
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) | |||
591 | EXPORT_SYMBOL(pTBI_get); | 591 | EXPORT_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) |
594 | char capabilites[] = "dsp fpu"; | 594 | static char capabilities[] = "dsp fpu"; |
595 | #elif defined(CONFIG_METAG_DSP) | 595 | #elif defined(CONFIG_METAG_DSP) |
596 | char capabilites[] = "dsp"; | 596 | static char capabilities[] = "dsp"; |
597 | #elif defined(CONFIG_METAG_FPU) | 597 | #elif defined(CONFIG_METAG_FPU) |
598 | char capabilites[] = "fpu"; | 598 | static char capabilities[] = "fpu"; |
599 | #else | 599 | #else |
600 | char capabilites[] = ""; | 600 | static char capabilities[] = ""; |
601 | #endif | 601 | #endif |
602 | 602 | ||
603 | static struct ctl_table caps_kern_table[] = { | 603 | static 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 | }, |