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>
This commit is contained in:
parent
42ad59e375
commit
6ce5764dbc
1 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue