projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4d017f
)
x86, smpboot: Mark the names[] array in __inquire_remote_apic() as const
author
Greg Dietsche
<Gregory.Dietsche@cuw.edu>
Fri, 1 Jul 2011 01:10:53 +0000
(20:10 -0500)
committer
Ingo Molnar
<mingo@elte.hu>
Thu, 21 Jul 2011 08:04:51 +0000
(10:04 +0200)
This array is read-only. Make it explicit by marking as const.
Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Link:
http://lkml.kernel.org/r/1309482653-23648-1-git-send-email-Gregory.Dietsche@cuw.edu
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/smpboot.c
b/arch/x86/kernel/smpboot.c
index
a3c430b
..
e02653a
100644
(file)
--- a/
arch/x86/kernel/smpboot.c
+++ b/
arch/x86/kernel/smpboot.c
@@
-425,7
+425,7
@@
static void impress_friends(void)
void __inquire_remote_apic(int apicid)
{
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
- c
har *
names[] = { "ID", "VERSION", "SPIV" };
+ c
onst char * const
names[] = { "ID", "VERSION", "SPIV" };
int timeout;
u32 status;