Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit a7294be

Browse files
satyap-qcomTreehugger Robot
authored and
Treehugger Robot
committed
ANDROID: ftrace: fix build issue
Fix below compilation errors by forward declaration of struct trace_seq. include/trace/hooks/ftrace_dump.h:29:18: error: \ declaration of 'struct trace_seq' will not be visible \ outside of this function [-Werror,-Wvisibility] include/trace/hooks/ftrace_dump.h:30:10: error: incompatible \ pointer types passing 'struct trace_seq *' to parameter of type \ 'struct trace_seq *' [-Werror,-Wincompatible-pointer-types] Fixes: ebc2d04 ("ANDROID: ftrace: add more vendor hook for ftrace dump on oops") Bug: 177387994 Change-Id: I9866e4cc9466e77c5deaf8d644f4048c802b82c1 Signed-off-by: Satya Durga Srinivasu Prabhala <[email protected]>
1 parent 4c1aadd commit a7294be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/trace/hooks/ftrace_dump.h

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#include <trace/hooks/vendor_hooks.h>
1111

12+
struct trace_seq;
13+
1214
DECLARE_HOOK(android_vh_ftrace_oops_enter,
1315
TP_PROTO(bool *ftrace_check),
1416
TP_ARGS(ftrace_check));

0 commit comments

Comments
 (0)