tests: add declarations for functions in gen-syscall-events-callstack.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 25 Nov 2019 21:08:20 +0000 (16:08 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 6 Dec 2019 13:21:01 +0000 (08:21 -0500)
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 <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/utils/testapp/gen-syscall-events-callstack/gen-syscall-events-callstack.c

index 26c10c83f13978cde49f96a30e74d74bfd434e72..5ad362f3b374caccb5b765117fedd3ff6bb1b132 100644 (file)
@@ -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)
 {
This page took 0.026047 seconds and 4 git commands to generate.