diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2025-07-18 16:26:08 +0900 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2025-08-15 12:02:51 +0900 |
| commit | c5aeb264b6b27c52fc6c9ef3b50eaaebff5d9b60 (patch) | |
| tree | 0130e938d3247a2b50d7b002d6e2f8fed10e58ad /rust/helpers/build_bug.c | |
| parent | be3536a4bdda53ff5a91b7e542b167d12bddb317 (diff) | |
gpu: nova-core: register: allow fields named `offset`
`offset` is a common field name, yet using it triggers a build error due
to the conflict between the uppercased field constant (which becomes
`OFFSET` in this case) containing the bitrange of the field, and the
`OFFSET` constant constaining the offset of the register.
Fix this by adding `_RANGE` the field's range constant to avoid the
name collision.
[acourbot@nvidia.com: fix merge conflict due to switch from `as u32` to
`u32::from`.]
Reported-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://lore.kernel.org/r/20250718-nova-regs-v2-3-7b6a762aa1cd@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions
