From: Alexandre Courbot Date: Thu, 19 Jun 2025 13:23:51 +0000 (+0900) Subject: gpu: nova-core: add delimiter for helper rules in register!() macro X-Git-Tag: io_uring-6.17-20250815~29^2~6^2~30 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8dd1433d905051f2d2e5ad8864da2de915a2f11f;p=linux-block.git gpu: nova-core: add delimiter for helper rules in register!() macro This macro is pretty complex, and most rules are just helper, so add a delimiter to indicate when users only interested in using it can stop reading. Reviewed-by: Lyude Paul Signed-off-by: Alexandre Courbot Link: https://lore.kernel.org/r/20250619-nova-frts-v6-7-ecf41ef99252@nvidia.com Signed-off-by: Danilo Krummrich --- diff --git a/drivers/gpu/nova-core/regs/macros.rs b/drivers/gpu/nova-core/regs/macros.rs index 40bf9346cd06..d7f09026390b 100644 --- a/drivers/gpu/nova-core/regs/macros.rs +++ b/drivers/gpu/nova-core/regs/macros.rs @@ -94,6 +94,8 @@ macro_rules! register { register!(@io$name @ + $offset); }; + // All rules below are helpers. + // Defines the wrapper `$name` type, as well as its relevant implementations (`Debug`, `BitOr`, // and conversion to regular `u32`). (@common $name:ident $(, $comment:literal)?) => {