commit | 45a683b2d815c4d775b77e8c8f0ac9e9b65f3f12 | [log] [tgz] |
---|---|---|
author | Haiyue Wang <haiyue.wang@intel.com> | Wed Mar 27 14:53:29 2024 +0800 |
committer | Alexei Starovoitov <ast@kernel.org> | Wed Mar 27 09:26:31 2024 -0700 |
tree | b2b535dae80267fe1e53b0519152fb1f914a2f21 | |
parent | 4c91c5925ac134ddb8035d05a3e2fb686b44757d [diff] |
bpf,arena: Use helper sizeof_field in struct accessors Use the well defined helper sizeof_field() to calculate the size of a struct member, instead of doing custom calculations. Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Link: https://lore.kernel.org/r/20240327065334.8140-1-haiyue.wang@intel.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>