Currently these warnings, as errors, are preventing Tyr driver
from building:
error: field `device` is never read
--> drivers/gpu/drm/tyr/driver.rs:37:5
|
36 | pub(crate) struct TyrDriver {
| --------- field in this struct
37 | device: ARef<TyrDevice>,
| ^^^^^^
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: fields `mali` and `sram` are never read
--> drivers/gpu/drm/tyr/driver.rs:196:5
|
195 | struct Regulators {
| ---------- fields in this struct
196 | mali: Regulator<regulator::Enabled>,
| ^^^^
197 | sram: Regulator<regulator::Enabled>,
| ^^^^
error: aborting due to 2 previous errors
Suppress these errors so that the Tyr driver will build.
Signed-off-by: Deborah Brouwer <[email protected]>
---
drivers/gpu/drm/tyr/driver.rs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
index 2a45d0288825..04c865cb4397 100644
--- a/drivers/gpu/drm/tyr/driver.rs
+++ b/drivers/gpu/drm/tyr/driver.rs
@@ -34,6 +34,7 @@
#[pin_data(PinnedDrop)]
pub(crate) struct TyrDriver {
+ #[allow(dead_code)]
device: ARef<TyrDevice>,
}
@@ -193,6 +194,8 @@ struct Clocks {
#[pin_data]
struct Regulators {
+ #[allow(dead_code)]
mali: Regulator<regulator::Enabled>,
+ #[allow(dead_code)]
sram: Regulator<regulator::Enabled>,
}
--
2.52.0