Skip to content
Snippets Groups Projects
Commit cb01621b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Andrii Nakryiko
Browse files

bpf: Use struct_size()


Use struct_size() instead of hand writing it.
This is less verbose and more robust.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Acked-by: default avatarYonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20240429121323.3818497-1-andriy.shevchenko@linux.intel.com
parent 397658dd
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment