Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ce5764d authored by Markos Chandras's avatar Markos Chandras Committed by James Hogan
Browse files

metag/setup: Restrict scope for the capabilities variable

parent 42ad59e3
Loading
Loading
Loading
Loading
+6 −6
Original line number Original line Diff line number Diff line
@@ -591,20 +591,20 @@ PTBI pTBI_get(unsigned int cpu)
EXPORT_SYMBOL(pTBI_get);
EXPORT_SYMBOL(pTBI_get);


#if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU)
#if defined(CONFIG_METAG_DSP) && defined(CONFIG_METAG_FPU)
char capabilites[] = "dsp fpu";
static char capabilities[] = "dsp fpu";
#elif defined(CONFIG_METAG_DSP)
#elif defined(CONFIG_METAG_DSP)
char capabilites[] = "dsp";
static char capabilities[] = "dsp";
#elif defined(CONFIG_METAG_FPU)
#elif defined(CONFIG_METAG_FPU)
char capabilites[] = "fpu";
static char capabilities[] = "fpu";
#else
#else
char capabilites[] = "";
static char capabilities[] = "";
#endif
#endif


static struct ctl_table caps_kern_table[] = {
static struct ctl_table caps_kern_table[] = {
	{
	{
		.procname	= "capabilities",
		.procname	= "capabilities",
		.data		= capabilites,
		.data		= capabilities,
		.maxlen		= sizeof(capabilites),
		.maxlen		= sizeof(capabilities),
		.mode		= 0444,
		.mode		= 0444,
		.proc_handler	= proc_dostring,
		.proc_handler	= proc_dostring,
	},
	},