浏览代码

[MIPS] Oprofile: Fix build failure due to warning and -Werror.

Signed-off-by: Thiemo Seufer <ths@networkno.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Thiemo Seufer 19 年之前
父节点
当前提交
30f244aed3
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/mips/oprofile/op_model_mipsxx.c

+ 2 - 0
arch/mips/oprofile/op_model_mipsxx.c

@@ -49,6 +49,7 @@ static inline unsigned int r_c0_ ## r ## n(void)			\
 	default:							\
 		BUG();							\
 	}								\
+	return 0;							\
 }									\
 									\
 static inline void w_c0_ ## r ## n(unsigned int value)			\
@@ -65,6 +66,7 @@ static inline void w_c0_ ## r ## n(unsigned int value)			\
 	default:							\
 		BUG();							\
 	}								\
+	return;								\
 }									\
 
 __define_perf_accessors(perfcntr, 0, 2)