x86: make ipi_handler() always defined

prepare for up_smp_call_function() to ensure that the 'func'
pointer is unused. (which is related to a KVM build fix)

Signed-off-by: Ingo Molnar <mingo@elte.hu>

+2 -4
+2 -4
arch/x86/kernel/cpu/mtrr/main.c
··· 139 mtrr_type smp_type; 140 }; 141 142 - #ifdef CONFIG_SMP 143 - 144 static void ipi_handler(void *info) 145 /* [SUMMARY] Synchronisation handler. Executed by "other" CPUs. 146 [RETURNS] Nothing. 147 */ 148 { 149 struct set_mtrr_data *data = info; 150 unsigned long flags; 151 ··· 167 168 atomic_dec(&data->count); 169 local_irq_restore(flags); 170 - } 171 - 172 #endif 173 174 static inline int types_compatible(mtrr_type type1, mtrr_type type2) { 175 return type1 == MTRR_TYPE_UNCACHABLE ||
··· 139 mtrr_type smp_type; 140 }; 141 142 static void ipi_handler(void *info) 143 /* [SUMMARY] Synchronisation handler. Executed by "other" CPUs. 144 [RETURNS] Nothing. 145 */ 146 { 147 + #ifdef CONFIG_SMP 148 struct set_mtrr_data *data = info; 149 unsigned long flags; 150 ··· 168 169 atomic_dec(&data->count); 170 local_irq_restore(flags); 171 #endif 172 + } 173 174 static inline int types_compatible(mtrr_type type1, mtrr_type type2) { 175 return type1 == MTRR_TYPE_UNCACHABLE ||