The bulk of this change occurs in the later commits, please see their messages for details. The first commit was developed in another series not yet shared with the list but was picked into this series to allow `HasWork::work_container_of` to return `container_of!` without the need to cast from `*const Self` to `*mut Self`. Signed-off-by: Tamir Duberstein <tamird@xxxxxxxxx> --- Changes in v2: - Rebase on rust-next. - Add WORKQUEUE maintainers to cc. - Link to v1: https://lore.kernel.org/r/20250307-no-offset-v1-0-0c728f63b69c@xxxxxxxxx --- Tamir Duberstein (2): rust: retain pointer mut-ness in `container_of!` rust: workqueue: remove HasWork::OFFSET rust/kernel/lib.rs | 5 ++--- rust/kernel/rbtree.rs | 23 ++++++++++------------- rust/kernel/workqueue.rs | 45 ++++++++++++--------------------------------- 3 files changed, 24 insertions(+), 49 deletions(-) --- base-commit: 0af2f6be1b4281385b618cb86ad946eded089ac8 change-id: 20250307-no-offset-e463667a72fb Best regards, -- Tamir Duberstein <tamird@xxxxxxxxx>