x86, smpboot: Mark the names[] array in __inquire_remote_apic() as const
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>
This commit is contained in:
committed by
Ingo Molnar
parent
c4d017f213
commit
a6c23905ff
@@ -425,7 +425,7 @@ static void impress_friends(void)
|
|||||||
void __inquire_remote_apic(int apicid)
|
void __inquire_remote_apic(int apicid)
|
||||||
{
|
{
|
||||||
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
|
unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
|
||||||
char *names[] = { "ID", "VERSION", "SPIV" };
|
const char * const names[] = { "ID", "VERSION", "SPIV" };
|
||||||
int timeout;
|
int timeout;
|
||||||
u32 status;
|
u32 status;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user