From 701a99d1cf638273320db3ce52cf52816129d95a Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 25 Nov 2019 16:08:20 -0500 Subject: [PATCH 1/1] tests: add declarations for functions in gen-syscall-events-callstack.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: CC gen-syscall-events-callstack.o /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c:46:1: error: no previous declaration for ‘my_gettid’ [-Werror=missing-declarations] my_gettid(void) ^~~~~~~~~ /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c:72:1: error: no previous declaration for ‘fct_c’ [-Werror=missing-declarations] fct_c(void) ^~~~~ /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c:78:1: error: no previous declaration for ‘fct_b’ [-Werror=missing-declarations] fct_b(void) ^~~~~ /home/smarchi/src/lttng-tools/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c:85:1: error: no previous declaration for ‘fct_a’ [-Werror=missing-declarations] fct_a(void) ^~~~~ From what I understand, it is important that these symbols stay exported for test regression/kernel/test_callstack. Change-Id: I656a4e77bb2653510ba971e94ccc0d8bb65be698 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau --- .../gen-syscall-events-callstack.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c b/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c index 26c10c83f..5ad362f3b 100644 --- a/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c +++ b/tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c @@ -42,6 +42,7 @@ volatile int val = 0; +long nooptimization my_gettid(void); long nooptimization my_gettid(void) { @@ -68,12 +69,14 @@ my_gettid(void) return ret; } +int nooptimization fct_c(void); int nooptimization fct_c(void) { return my_gettid(); } +int nooptimization fct_b(void); int nooptimization fct_b(void) { @@ -81,6 +84,7 @@ fct_b(void) return val; } +int nooptimization fct_a(void); int nooptimization fct_a(void) { -- 2.34.1