summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorEliot Courtney <ecourtney@nvidia.com>2026-09-30 11:42:53 +0900
committerMiguel Ojeda <ojeda@kernel.org>2026-10-13 12:52:26 +0200
commitd21cfabdd8aee0a837d31d945844e5c177154389 (patch)
tree8d5b3bb2923d4886a2befdd85b4ed69f4c526597 /scripts/checkstack.pl
parentbf461edb197bd7c0462c1d13bb1c3b51d6892fd3 (diff)
downloadlinux-next-d21cfabdd8aee0a837d31d945844e5c177154389.tar.gz
linux-next-d21cfabdd8aee0a837d31d945844e5c177154389.zip
rust: sizes: implement SizeConstants for Alignment
Currently, constructing an alignment is quite verbose [1]: Alignment::new::<8>() It's unfortunate because it disincentivizes using it at interface boundaries. Implement `SizeConstants` for `Alignment` so we can write e.g. `Alignment::SZ_8` instead. Link: https://lore.kernel.org/an4xDp29VX8Am0uR@yury [1] Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Eliot Courtney <ecourtney@nvidia.com> Link: https://patch.msgid.link/20260930-chid-v9-4-0d6cca376cff@nvidia.com Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions