diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2008-12-29 11:41:40 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-30 01:08:22 -0500 |
commit | 4d08d97f5262dab4482af5bc91b30af4ca02269e (patch) | |
tree | 5d028c4326189b9911f61d01a2ca7069ac10c861 /arch | |
parent | 557f687c87ddb8adb094b2dad4e1c83c7717982d (diff) |
x86: genx2apic_phys.c: x2apic_send_IPI_self and init_x2apic_ldr should be static
Impact: cleanup, reduce kernel size a bit, avoid sparse warnings
Fixes sparse warnings:
arch/x86/kernel/genx2apic_phys.c:164:6: warning: symbol 'x2apic_send_IPI_self' was not declared. Should it be static?
arch/x86/kernel/genx2apic_phys.c:169:6: warning: symbol 'init_x2apic_ldr' 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')
-rw-r--r-- | arch/x86/kernel/genx2apic_phys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/genx2apic_phys.c b/arch/x86/kernel/genx2apic_phys.c index d042211768b7..a177c7880ab5 100644 --- a/arch/x86/kernel/genx2apic_phys.c +++ b/arch/x86/kernel/genx2apic_phys.c | |||
@@ -123,12 +123,12 @@ static unsigned int phys_pkg_id(int index_msb) | |||
123 | return current_cpu_data.initial_apicid >> index_msb; | 123 | return current_cpu_data.initial_apicid >> index_msb; |
124 | } | 124 | } |
125 | 125 | ||
126 | void x2apic_send_IPI_self(int vector) | 126 | static void x2apic_send_IPI_self(int vector) |
127 | { | 127 | { |
128 | apic_write(APIC_SELF_IPI, vector); | 128 | apic_write(APIC_SELF_IPI, vector); |
129 | } | 129 | } |
130 | 130 | ||
131 | void init_x2apic_ldr(void) | 131 | static void init_x2apic_ldr(void) |
132 | { | 132 | { |
133 | return; | 133 | return; |
134 | } | 134 | } |