aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-10-10 19:31:00 +0300
committerMark Brown <[email protected]>2023-10-11 17:10:54 +0100
commitf6d7f050e258e3c71e310f5167c4d65bbefaeb31 (patch)
tree0c63df0e0e8c8e98e050db8f3821757d6268b18e /tools/perf/util/trace-event-scripting.c
parent8097dbd4b631b1f4cfe3def909f828b071d99ad7 (diff)
spi: Don't use flexible array in struct spi_message definition
The struct spi_message can be embedded into another structures. With that the flexible array might be problematic as sparse complains about it, although there is no real issue in the code because when the message is embedded it doesn't use flexible array member. That memeber is a private to spi_message_alloc() API, so move it to that API in a form of an inherited data type. Reported-by: Marc Kleine-Budde <[email protected]> Fixes: 75e308ffc4f0 ("spi: Use struct_size() helper")) Closes: https://lore.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Marc Kleine-Budde <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions