]> git.baikalelectronics.ru Git - kernel.git/commit
libperf test evsel: Fix build error on !x86 architectures
authorShunsuke Nakamura <nakamura.shun@fujitsu.com>
Wed, 6 Oct 2021 09:57:03 +0000 (18:57 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Oct 2021 18:41:35 +0000 (15:41 -0300)
commit150d818477705eb5aa6ba4a6b564f32ce4adcfb6
tree8c033cac7ddd8c4f919c217bcb05363f2fb41255
parent07a63bd5176377714ec605eda8ac7ec9d7fdba70
libperf test evsel: Fix build error on !x86 architectures

In test_stat_user_read, following build error occurs except i386 and
x86_64 architectures:

tests/test-evsel.c:129:31: error: variable 'pc' set but not used [-Werror=unused-but-set-variable]
  struct perf_event_mmap_page *pc;

Fix build error.

Signed-off-by: Shunsuke Nakamura <nakamura.shun@fujitsu.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20211006095703.477826-1-nakamura.shun@fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/tests/test-evsel.c