From: James Hogan <james.hogan@imgtec.com>
To: <linux-kernel@vger.kernel.org>
Cc: Markos Chandras <markos.chandras@imgtec.com>,
James Hogan <james.hogan@imgtec.com>
Subject: [PATCH 06/10] metag/setup: Restrict scope for the capabilities variable
Date: Thu, 13 Jun 2013 13:19:37 +0100 [thread overview]
Message-ID: <1371125981-5184-7-git-send-email-james.hogan@imgtec.com> (raw)
In-Reply-To: <1371125981-5184-1-git-send-email-james.hogan@imgtec.com>
From: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
---
arch/metag/kernel/setup.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/metag/kernel/setup.c b/arch/metag/kernel/setup.c
index e18cebb..c396cd0 100644
--- a/arch/metag/kernel/setup.c
+++ b/arch/metag/kernel/setup.c
@@ -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,
},
--
1.8.1.2
next prev parent reply other threads:[~2013-06-13 12:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-13 12:19 [PATCH 00/10] metag: various patches for v3.11 James Hogan
2013-06-13 12:19 ` [PATCH 01/10] metag: init common clk and use "core" clk James Hogan
2013-06-13 12:19 ` [PATCH 02/10] metag: log core and timer frequencies from arch code James Hogan
2013-06-13 12:19 ` [PATCH 03/10] metag/kernel/irq.c: Declare root_domain as static James Hogan
2013-06-13 12:19 ` [PATCH 04/10] metag/asm/irq.h: Declare init_IRQ James Hogan
2013-06-13 12:19 ` [PATCH 05/10] metag/mm/cache: Restrict scope for metag_lnkget_probe James Hogan
2013-06-13 12:19 ` James Hogan [this message]
2013-06-13 12:19 ` [PATCH 07/10] metag/processor.h: Add missing cpuinfo_op declaration James Hogan
2013-06-13 12:19 ` [PATCH 08/10] metag/traps: Mark die() as __noreturn to match the declaration James Hogan
2013-06-13 12:19 ` [PATCH 09/10] metag/traps: include setup.h for the per_cpu_trap_init declaration James Hogan
2013-06-13 12:19 ` [PATCH 10/10] metag/.gitignore: Extend the *.dtb pattern to match the dtb.S files James Hogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1371125981-5184-7-git-send-email-james.hogan@imgtec.com \
--to=james.hogan@imgtec.com \
--cc=linux-kernel@vger.kernel.org \
--cc=markos.chandras@imgtec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®