Florian Fainelli
1b1f01b653
MIPS: perf: Fix build with CONFIG_CPU_BMIPS5000 enabled
arch/mips/kernel/perf_event_mipsxx.c: In function 'mipsxx_pmu_enable_event':
arch/mips/kernel/perf_event_mipsxx.c:326:21: error: unused variable 'event' [-Werror=unused-variable]
struct perf_event *event = container_of(evt, struct perf_event, hw);
^~~~~
Fix this by making use of IS_ENABLED() to simplify the code and avoid
unnecessary ifdefery.
Fixes: 84002c88599d ("MIPS: perf: Fix perf with MT counting other threads")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@linux-mips.org
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: stable@vger.kernel.org # v4.18+
2019-05-09 16:39:26 -07:00
..
2019-01-05 12:48:25 -08:00
2019-02-04 18:33:36 -08:00
2018-11-23 11:45:34 +09:00
2019-01-22 11:17:22 -08:00
2019-04-09 16:21:13 -07:00
2019-03-19 15:34:04 -07:00
2018-10-31 08:54:16 -07:00
2019-03-10 17:48:21 -07:00
2019-03-12 10:04:02 -07:00
2019-04-09 16:21:32 -07:00
2018-02-19 20:50:36 +00:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-31 08:54:16 -07:00
2018-10-09 10:38:29 -07:00
2019-05-02 11:27:11 -07:00
2019-01-09 13:14:34 -08:00
2019-02-21 15:55:41 -08:00
2019-05-09 16:39:26 -07:00
2019-03-25 14:02:12 -07:00
2019-03-05 11:28:25 -08:00
2018-10-31 08:54:16 -07:00
2019-02-04 10:56:41 -08:00
2019-02-04 14:44:33 -08:00
2019-04-09 16:21:13 -07:00
2019-01-22 11:17:20 -08:00
2019-03-19 15:26:06 -07:00
2018-11-20 21:05:39 -08:00
2019-03-19 15:26:12 -07:00
2018-10-31 08:54:16 -07:00
2019-01-03 18:57:57 -08:00
2018-07-17 09:40:17 -07:00
2019-03-05 11:28:25 -08:00
2019-03-19 15:34:04 -07:00
2017-11-02 11:10:55 +01:00
2018-11-23 11:45:34 +09:00
2018-10-03 11:12:25 +02:00
2017-11-02 11:10:55 +01:00
2019-04-12 11:09:31 -07:00
2018-12-04 17:15:25 -07:00
2018-08-31 11:49:20 -07:00
2019-02-19 12:46:03 -08:00
2018-06-24 09:27:27 -07:00
2019-01-03 18:57:57 -08:00
2018-05-14 23:58:25 +01:00
2018-08-30 09:39:22 -07:00
2018-11-23 11:45:34 +09:00
2019-04-23 14:53:54 -07:00
2018-11-23 11:45:34 +09:00
2017-04-10 11:56:07 +02:00
2017-11-08 22:54:14 +00:00
2019-03-19 15:34:04 -07:00
2018-08-02 08:06:48 +09:00
2019-02-04 10:56:35 -08:00
2017-11-02 11:10:55 +01:00