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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dd1433d905051f2d2e5ad8864da2de915a2f11f;p=thirdparty%2Flinux.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 40bf9346cd069..d7f09026390b4 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)?) => {