Skip to content

rust: io: register: a few fixups

Alexandre Courbot dri-devel driver-core lkml nova-gpu rust-for-linux 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260418-registers_fix-7a67ebef9ba0

Versions newest first

  1. v2 Latest3 patches 1 replyApplied
  2. v18 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Move a missed conversion of an internal rule to patch 1.
- Remove all patches related to relative registers.
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3rust: io: register: dispatch shortcut rules internallyrust/kernel/io/register.rs+4 -20 replies
2/3rust: io: register: remove unused rule argumentsrust/kernel/io/register.rs+12 -150 replies
3/3rust: io: register: use path fragment for alias destinationrust/kernel/io/register.rs+5 -20 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchGary Guo
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] rust: io: register: a few fixups

These patches implement a few fixes to the register macro, notably removing unused arguments from internal rules, and using the path fragment instead of ident when defining a register alias, since the aliased register is a type.

It is considerably stripped down from the first revision; the original goal of the series was to fix an inconsistency with the way relative registers are defined, but since these are likely to go away soon [1], this part has been dropped and only these minor fixes remain.

This series applies on top of drm-rust-next.

[1] https://lore.kernel.org/all/[email protected]/

---
Changes in v2:
- Move a missed conversion of an internal rule to patch 1.
- Remove all patches related to relative registers.
- Link to v1: https://patch.msgid.link/[email protected]

---
Alexandre Courbot (3):
rust: io: register: dispatch shortcut rules internally
rust: io: register: remove unused rule arguments
rust: io: register: use path fragment for alias destination

 rust/kernel/io/register.rs | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)

---
base-commit: 6dcbb4b1320fa91fee349462a52bb69135f2e45e
change-id: 20260418-registers_fix-7a67ebef9ba0

Best regards,

Signature · 1 line
Alexandre Courbot <[email protected]>