Skip to contentSkip to conversation

Fix build failure in op_model_mipsxx.c

PATCH New Thiemo Seufer 1 participant 1 message Jul 7, 2006 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build failure in op_model_mipsxx.c

Hello All,

this fixes a build warning which gets handled as -Werror.

Thiemo

arch/mips/oprofile/op_model_mipsxx.c +2 -0
index a09c5f9..a175d67 100644
@@ -49,6 +49,7 @@ static inline unsigned int r_c0_ ## r ##
 	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(unsig
 	default:							\
 		BUG();							\
 	}								\
+	return;								\
 }									\
 
 __define_perf_accessors(perfcntr, 0, 2)