diff --git a/tools/perf/bench/numa.c b/tools/perf/bench/numa.c index 44e1f8a44087e..d5289fa58a4f1 100644 --- a/tools/perf/bench/numa.c +++ b/tools/perf/bench/numa.c @@ -311,6 +311,7 @@ static cpu_set_t *bind_to_cpu(int target_cpu) /* BUG_ON due to failure in allocation of orig_mask/mask */ BUG_ON(-1); + return NULL; } static cpu_set_t *bind_to_node(int target_node) @@ -364,6 +365,7 @@ static cpu_set_t *bind_to_node(int target_node) /* BUG_ON due to failure in allocation of orig_mask/mask */ BUG_ON(-1); + return NULL; } static void bind_to_cpumask(cpu_set_t *mask)