aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-07-16 20:48:57 +0200
committerAndrew Morton <[email protected]>2023-08-18 10:18:57 -0700
commitd70fa34f9924ca74a317b107e322179e0966341b (patch)
tree44336a5fab779f4e6001ceead0113ea23d07bb5d /tools/perf/scripts/python
parentcb2273a415af31be3eec9678cdcfcd74d56f33b7 (diff)
ocfs2: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure with a flex array. This is less verbose. Link: https://lkml.kernel.org/r/9d99ea2090739f816d0dc0c4ebaa42b26fc48a9e.1689533270.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Joseph Qi <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Cc: Junxiao Bi <[email protected]> Cc: Changwei Ge <[email protected]> Cc: Gang He <[email protected]> Cc: Jun Piao <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions