Skip to contentSkip to conversation

linux-next: build failure in the final build

DISCUSSION Mark Brown 4 participants 9 messages Jan 21 – Jan 22 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After the final merge today's linux-next build (arm64 allyesconfig) failed like this, the same issue will be present in mainline:

error: field device is never read
--> /tmp/next/build/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
--> /tmp/next/build/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

Caused by commit

cf4fd52e32360 (rust: drm: Introduce the Tyr driver for Arm Mali GPUs)

I am continuing to mark the driver as BROKEN.

#1 lore raw
Quoted 9 lines · Mark Brown

After the final merge today's linux-next build (arm64 allyesconfig) failed like this, the same issue will be present in mainline:

Caused by commit

cf4fd52e32360 (rust: drm: Introduce the Tyr driver for Arm Mali GPUs)

I am continuing to mark the driver as BROKEN.

Cc'ing Daniel as maintainer of Tyr and author of the commit -- somehow he wasn't Cc'd?

Thanks Mark!

Cheers,
Miguel

author maintainer
#2 lore raw
Quoted 2 lines · Miguel Ojeda

Cc'ing Daniel as maintainer of Tyr and author of the commit -- somehow he wasn't Cc'd?

Ah, sorry - I missed his signoff below the Link: trailer separate to the rest of the author signoffs. Copying the Cc list from the blamed commit is a manual process for build failures, my mistake.

#3 lore raw
Quoted 4 lines · Mark Brown

Ah, sorry - I missed his signoff below the Link: trailer separate to the rest of the author signoffs. Copying the Cc list from the blamed commit is a manual process for build failures, my mistake.

No worries, happy to help! I indeed thought that part was probably semi-automated.

Cheers,
Miguel

#4 lore raw
In reply to Mark Brown
Quoted 26 lines · Mark Brown

Hi all,

After the final merge today's linux-next build (arm64 allyesconfig) failed like this, the same issue will be present in mainline:

error: field device is never read
--> /tmp/next/build/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
--> /tmp/next/build/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>,
    |     ^^^^
Quoted 7 lines

error: aborting due to 2 previous errors

Caused by commit

cf4fd52e32360 (rust: drm: Introduce the Tyr driver for Arm Mali GPUs)

I am continuing to mark the driver as BROKEN.

Hrm I saw you had this last time too. I'm not sure how you're triggering it - I haven't run into it myself and I do enable warnings. But I'll try to repro and fix it.

Note that for this kind of thing you can add #![allow(warnings)] to the top of a file to silence warnings.

Alice

#5 lore raw
Quoted 7 lines · Alice Ryhl

Hrm I saw you had this last time too. I'm not sure how you're triggering it - I haven't run into it myself and I do enable warnings. But I'll try to repro and fix it.

Note that for this kind of thing you can add #![allow(warnings)] to the top of a file to silence warnings.

Mark: we are in a call right now and Danilo asked about this -- I have a similar issue with CI with bounded.rs in 1.80.0, so Danilo tested 1.80.0 and 1.80.1 and indeed 1.80.0 is broken.

We are upping the minimum to 1.85.0 soon, so it is not a big deal.

Could you please upgrade to Rust 1.80.1 at least for linux-next runs? Where are you taking the toolchain from? i.e. I would expect a distro to provide the fixed .1

We hope that helps!

Cheers,
Miguel

author maintainer
#6 lore raw
Quoted 9 lines · Miguel Ojeda
Quoted 2 lines · Alice Ryhl

Note that for this kind of thing you can add #![allow(warnings)] to the top of a file to silence warnings.

Mark: we are in a call right now and Danilo asked about this -- I have a similar issue with CI with bounded.rs in 1.80.0, so Danilo tested 1.80.0 and 1.80.1 and indeed 1.80.0 is broken.

Quoted 5 lines

We are upping the minimum to 1.85.0 soon, so it is not a big deal.

Could you please upgrade to Rust 1.80.1 at least for linux-next runs? Where are you taking the toolchain from? i.e. I would expect a distro to provide the fixed .1

I've just got the default toolchain in Debian stable which appears to be 1.85.0.

ii rustc 1.85.0+dfsg3-1 arm64 Rust systems programming language

#7 lore raw
In reply to Alice Ryhl
Quoted 31 lines · Alice Ryhl
Quoted 30 lines · Mark Brown

Hi all,

After the final merge today's linux-next build (arm64 allyesconfig) failed like this, the same issue will be present in mainline:

error: field device is never read
--> /tmp/next/build/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
--> /tmp/next/build/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

Caused by commit

Quoted 7 lines
Quoted 3 lines

cf4fd52e32360 (rust: drm: Introduce the Tyr driver for Arm Mali GPUs)

I am continuing to mark the driver as BROKEN.

Hrm I saw you had this last time too. I'm not sure how you're triggering it - I haven't run into it myself and I do enable warnings. But I'll try to repro and fix it.

Although I hadn't seen this error before I was able to reproduce it today on linux-next/master so I don't know if it's too late, but here is a quick fix.

https://lore.kernel.org/rust-for-linux/[email protected]/

Quoted 5 lines

Note that for this kind of thing you can add #![allow(warnings)] to the top of a file to silence warnings.

Alice

author maintainer
#8 lore raw
In reply to Alice Ryhl
Quoted 2 lines · Alice Ryhl

Note that for this kind of thing you can add #![allow(warnings)] to the top of a file to silence warnings.

That's not really the sort of thing we apply to -next usually.