Commit ec8c842a authored by Jaswinder Singh Rajput's avatar Jaswinder Singh Rajput Committed by H. Peter Anvin

x86: apic.c: xapic_icr_read and x2apic_icr_read should be static

Impact: cleanup, reduce kernel size a bit, avoid sparse warning

Fixes sparse warning:
arch/x86/kernel/apic.c:270:5: warning: symbol 'x2apic_icr_read' was not declared. Should it be static?
Signed-off-by: default avatarJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent c62e9d56
...@@ -54,7 +54,6 @@ extern int disable_apic; ...@@ -54,7 +54,6 @@ extern int disable_apic;
extern int is_vsmp_box(void); extern int is_vsmp_box(void);
extern void xapic_wait_icr_idle(void); extern void xapic_wait_icr_idle(void);
extern u32 safe_xapic_wait_icr_idle(void); extern u32 safe_xapic_wait_icr_idle(void);
extern u64 xapic_icr_read(void);
extern void xapic_icr_write(u32, u32); extern void xapic_icr_write(u32, u32);
extern int setup_profiling_timer(unsigned int); extern int setup_profiling_timer(unsigned int);
......
...@@ -228,7 +228,7 @@ void xapic_icr_write(u32 low, u32 id) ...@@ -228,7 +228,7 @@ void xapic_icr_write(u32 low, u32 id)
apic_write(APIC_ICR, low); apic_write(APIC_ICR, low);
} }
u64 xapic_icr_read(void) static u64 xapic_icr_read(void)
{ {
u32 icr1, icr2; u32 icr1, icr2;
...@@ -268,7 +268,7 @@ void x2apic_icr_write(u32 low, u32 id) ...@@ -268,7 +268,7 @@ void x2apic_icr_write(u32 low, u32 id)
wrmsrl(APIC_BASE_MSR + (APIC_ICR >> 4), ((__u64) id) << 32 | low); wrmsrl(APIC_BASE_MSR + (APIC_ICR >> 4), ((__u64) id) << 32 | low);
} }
u64 x2apic_icr_read(void) static u64 x2apic_icr_read(void)
{ {
unsigned long val; unsigned long val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment