From: Simon Marchi Date: Mon, 25 Nov 2019 21:08:20 +0000 (-0500) Subject: tests: add declarations for functions in gen-syscall-events-callstack.c X-Git-Tag: v2.12.0-rc1~188 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=701a99d1cf638273320db3ce52cf52816129d95a;p=lttng-tools.git tests: add declarations for functions in gen-syscall-events-callstack.c 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 --- 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) {