]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tyr: suppress unread field warnings
authorDeborah Brouwer <deborah.brouwer@collabora.com>
Fri, 23 Jan 2026 17:52:35 +0000 (09:52 -0800)
committerAlice Ryhl <aliceryhl@google.com>
Fri, 23 Jan 2026 20:14:22 +0000 (20:14 +0000)
commit5ec66bbc74883b73d169ceb25dcb7a5cb22e275b
treed3e4f6e113497438b6822ee8e8505b9376d87b81
parent638eeda8abaa3e6afe6bd5758ef8045a7f33b9a0
drm/tyr: suppress unread field warnings

Currently the rust compiler warns that certain fields in the TyrDriver are
'never read'. The fields are needed, but they are not read directly, they
are only written into an 'impl PinInit' that is returned by probe.

When warnings are compiled as errors, these warnings prevent Tyr from
building.

Suppress the warnings by adding underscores to the problematic variables.
This allows Tyr to build again.

Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260123175235.209092-1-deborah.brouwer@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
drivers/gpu/drm/tyr/driver.rs