diff options
author | 2023-07-12 22:42:15 +0200 | |
---|---|---|
committer | 2023-07-13 20:21:26 -0700 | |
commit | cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a (patch) | |
tree | 3c02391ab753569084bddf8a8cec01210e076539 /scripts/bpf_doc.py | |
parent | soc: qcom: spm: Convert to devm_platform_ioremap_resource() (diff) | |
download | linux-rng-cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a.tar.xz linux-rng-cbdd13bfea785667f9c9df4c6ec46fc841ef6c4a.zip |
soc: qcom: smem: Use struct_size()
Use struct_size() instead of hand-writing it, when allocating a structure
with a flex array.
This is less verbose.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/f74328551cfab0262ba353f37d047ac74bf616e1.1689194490.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions