Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
x86, smpboot: Mark the names[] array in __inquire_remote_apic() as const
Browse files Browse the repository at this point in the history
This array is read-only. Make it explicit by marking as const.

Signed-off-by: Greg Dietsche <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
  • Loading branch information
farmergreg authored and Ingo Molnar committed Jul 21, 2011
1 parent c4d017f commit a6c2390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
char *names[] = { "ID", "VERSION", "SPIV" };
const char * const names[] = { "ID", "VERSION", "SPIV" };
int timeout;
u32 status;

Expand Down

0 comments on commit a6c2390

Please sign in to comment.