diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2008-12-30 22:46:36 +0530 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-30 13:31:28 -0800 |
commit | ec8c842a524888fdcccece337d91798e3e8af880 (patch) | |
tree | b1296c9af3be9bc75c67ba9812e84d10d7811c25 /arch/x86/kernel/apic.c | |
parent | c62e9d56ea90ef94f9708ce3f11860c20fa5e135 (diff) | |
download | blackbird-op-linux-ec8c842a524888fdcccece337d91798e3e8af880.tar.gz blackbird-op-linux-ec8c842a524888fdcccece337d91798e3e8af880.zip |
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: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/apic.c')
-rw-r--r-- | arch/x86/kernel/apic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index c67722f010bd..66198cbe464d 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c @@ -228,7 +228,7 @@ void xapic_icr_write(u32 low, u32 id) apic_write(APIC_ICR, low); } -u64 xapic_icr_read(void) +static u64 xapic_icr_read(void) { u32 icr1, icr2; @@ -268,7 +268,7 @@ void x2apic_icr_write(u32 low, u32 id) 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; |