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

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 <roman.stratiienko@globallogic.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 60aa08c9
......@@ -266,7 +266,7 @@ DECLARE_EVENT_CLASS(cobalt_void,
TP_PROTO(int dummy),
TP_ARGS(dummy),
TP_STRUCT__entry(
__array(char, dummy, 0)
__field(int, dummy)
),
TP_fast_assign(
(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