aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorGuo Zhengkui <[email protected]>2021-12-09 11:21:14 +0800
committerVinod Koul <[email protected]>2021-12-09 17:24:54 +0530
commite87f13c33e126ab2c72f9acb5ae98fbb93ddfd32 (patch)
tree22a22b89bc63bf767e111e87fe289d105e86e6c1 /tools/perf/scripts/python/flamegraph.py
parent15aa1f668c5464fe201cf15d0d76f9429fdf163f (diff)
phy: qcom: use struct_size instead of sizeof
Use struct_size() to get the accurate size of `clk_hw_onecell_data` with a variable size array, instead of sizeof(data) to get the size of a pointer. Suggested-by: Bjorn Andersson <[email protected]> Signed-off-by: Guo Zhengkui <[email protected]> Fixes: f199223cb490 ("phy: qcom: Introduce new eDP PHY driver") Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions