]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: bitfield: simplify expression
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 22 Oct 2025 10:50:57 +0000 (19:50 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Sat, 25 Oct 2025 04:16:31 +0000 (13:16 +0900)
commite6b8932b9374bd0591bb4dda3eb3e4f1cc50655e
treeafb931e6fab58aeb9370735433997b5b6a73b6ac
parentfa08ec789f81425c3722fd2c6df825e06c810b43
gpu: nova-core: bitfield: simplify expression

The shift is more easily expressed by the index of the lowest bit of the
field.

Reported-by: Edwin Peer <epeer@nvidia.com>
Link: https://lore.kernel.org/rust-for-linux/F3853912-2C1C-4F9B-89B0-3168689F35B3@nvidia.com/
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20251022-nova-bitfield-v1-2-73bc0988667b@nvidia.com>
drivers/gpu/nova-core/bitfield.rs