--- zzzz-none-000/linux-2.6.32.61/arch/mips/oprofile/common.c 2013-06-10 09:43:48.000000000 +0000 +++ virian-300e-630/linux-2.6.32.61/arch/mips/oprofile/common.c 2011-01-21 15:59:20.000000000 +0000 @@ -15,7 +15,9 @@ #include "op_impl.h" extern struct op_mips_model op_model_mipsxx_ops __attribute__((weak)); +#ifndef CONFIG_OPROFILE_WASP extern struct op_mips_model op_model_rm9000_ops __attribute__((weak)); +#endif extern struct op_mips_model op_model_loongson2_ops __attribute__((weak)); static struct op_mips_model *model; @@ -90,10 +92,11 @@ case CPU_R14000: lmodel = &op_model_mipsxx_ops; break; - +#ifndef CONFIG_OPROFILE_WASP case CPU_RM9000: lmodel = &op_model_rm9000_ops; break; +#endif case CPU_LOONGSON2: lmodel = &op_model_loongson2_ops; break;