From: Adrian Hunter Date: Mon, 24 Jan 2022 08:41:37 +0000 (+0200) Subject: perf intel-pt: pkt-decoder-test: Fix scope of test_data X-Git-Tag: v6.6.17~7886^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32449b430fe1df81ce1da84475fc48536264f919;p=platform%2Fkernel%2Flinux-rpi.git perf intel-pt: pkt-decoder-test: Fix scope of test_data Make test_data 'static' otherwise it will conflict with any global variable of the same name. Signed-off-by: Adrian Hunter Cc: Alexander Shishkin Cc: Andi Kleen Cc: Jiri Olsa Link: https://lore.kernel.org/r/20220124084201.2699795-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c b/tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c index 2fc882a..395de44 100644 --- a/tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c +++ b/tools/perf/arch/x86/tests/intel-pt-pkt-decoder-test.c @@ -17,7 +17,7 @@ * @new_ctx: expected new packet context * @ctx_unchanged: the packet context must not change */ -struct test_data { +static struct test_data { int len; u8 bytes[INTEL_PT_PKT_MAX_SZ]; enum intel_pt_pkt_ctx ctx;