Skip to content

Commit 8dd1433

Browse files
GnurouDanilo Krummrich
authored andcommitted
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 <lyude@redhat.com> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Link: https://lore.kernel.org/r/20250619-nova-frts-v6-7-ecf41ef99252@nvidia.com Signed-off-by: Danilo Krummrich <dakr@kernel.org>
1 parent 8d5fbb8 commit 8dd1433

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/nova-core/regs/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ macro_rules! register {
9494
register!(@io$name @ + $offset);
9595
};
9696

97+
// All rules below are helpers.
98+
9799
// Defines the wrapper `$name` type, as well as its relevant implementations (`Debug`, `BitOr`,
98100
// and conversion to regular `u32`).
99101
(@common $name:ident $(, $comment:literal)?) => {

0 commit comments

Comments
 (0)