aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2023-07-14 12:17:48 +0300
committerMark Brown <[email protected]>2023-07-14 14:44:39 +0100
commit75e308ffc4f0d36b895f1110ece8b77d4116fdb1 (patch)
tree3c3f612b0c248bcc5740b0376fc6effed9081fe8 /tools/perf/scripts/python/stackcollapse.py
parent169f5312dc46deb986e368b6828bedbedd297f6e (diff)
spi: Use struct_size() helper
The Documentation/process/deprecated.rst suggests to use flexible array members to provide a way to declare having a dynamically sized set of trailing elements in a structure.This makes code robust agains bunch of the issues described in the documentation, main of which is about the correctness of the sizeof() calculation for this data structure. Due to above, prefer struct_size() over open-coded versions. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions