summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-05-12 15:09:53 +0300
committerGary Guo <gary@garyguo.net>2026-05-18 14:21:28 +0300
commit6fb5912c92926025a7e205d53feb73c3478c79a1 (patch)
tree174d9ae61350d9ac40520718e10485e05435376c /include/linux/debugobjects.h
parent5483a97dd2dfcaf8540dba0a80b68a400c4c1861 (diff)
downloadlinux-6fb5912c92926025a7e205d53feb73c3478c79a1.tar.xz
rust: pin-init: internal: project using full slot
Instead of projecting using pointer to a field project the full slot. This further shifts the code generation from the initializer site to the struct definition site, which means less code is generated overall. It also makes the safety comment easier to justify, as now the projection is done by the `#[pin_data]` macro which has full visibility of pinnedness of fields. The field alignment could also be checked on the `#[pin_data]` side; however, since `init!()` macro works for other type of structs, we cannot remove the alignment check from `init!`/`pin_init!` side anyway, so I opted to still keep the alignment check in init.rs. Signed-off-by: Gary Guo <gary@garyguo.net>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions