Commit 20e0ba04 authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Jan Kiszka
Browse files

kernel: cobalt: trace: replace dummy array with field

After kernel v4.18 commit 4a0772cf0674
("tracing: Prevent further users of zero size static arrays in trace events")
creating zero length arrays will force compile-time error

This will fix BUILD_BUG_ON error on v4.18 and later
Signed-off-by: default avatarRoman Stratiienko <>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent 60aa08c9
...@@ -266,7 +266,7 @@ DECLARE_EVENT_CLASS(cobalt_void, ...@@ -266,7 +266,7 @@ DECLARE_EVENT_CLASS(cobalt_void,
TP_PROTO(int dummy), TP_PROTO(int dummy),
TP_ARGS(dummy), TP_ARGS(dummy),
TP_STRUCT__entry( TP_STRUCT__entry(
__array(char, dummy, 0) __field(int, dummy)
), ),
TP_fast_assign( TP_fast_assign(
(void)dummy; (void)dummy;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment