Skip to contentSkip to conversation

linux-next: build failure after merge of the driver-core tree

PATCH Stephen Rothwell 3 participants 3 messages Mar 12, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) failed like this:

error[E0599]: no method named readl found for reference &Bar<8> in the current scope
--> drivers/gpu/nova-core/regs.rs:38:18

   |
38 |         Self(bar.readl(BOOT0_OFFSET))
   |                  ^^^^^
   |
help: there is a method `read8` with a similar name
   |
38 |         Self(bar.read8(BOOT0_OFFSET))
   |                  ~~~~~

error: aborting due to 1 previous error

For more information about this error, try rustc --explain E0599.

Caused by commit

354fd6e86fac ("rust: io: rename io::Io accessors")

interacting with commit

54e6baf123fd ("gpu: nova-core: add initial driver stub")

from the drm-nova tree.

I applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Wed, 12 Mar 2025 21:36:48 +1100
Subject: [PATCH] fix up for "rust: io: rename io::Io accessors"

interacting with "gpu: nova-core: add initial driver stub"

---
 drivers/gpu/nova-core/regs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/nova-core/regs.rs +1 -1
index 50aefb150b0b..b1a25b86ef17 100644
@@ -35,7 +35,7 @@
 impl Boot0 {
     #[inline]
     pub(crate) fn read(bar: &Bar0) -> Self {
-        Self(bar.readl(BOOT0_OFFSET))
+        Self(bar.read32(BOOT0_OFFSET))
     }
 
     #[inline]
Signature · 5 lines
2.45.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 59 lines · Stephen Rothwell

Hi all,

After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) failed like this:

error[E0599]: no method named readl found for reference &Bar<8> in the current scope
--> drivers/gpu/nova-core/regs.rs:38:18

   |
38 |         Self(bar.readl(BOOT0_OFFSET))
   |                  ^^^^^
   |
help: there is a method `read8` with a similar name
   |
38 |         Self(bar.read8(BOOT0_OFFSET))
   |                  ~~~~~

error: aborting due to 1 previous error

For more information about this error, try rustc --explain E0599.

Caused by commit

354fd6e86fac ("rust: io: rename io::Io accessors")

interacting with commit

54e6baf123fd ("gpu: nova-core: add initial driver stub")

from the drm-nova tree.

I applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Wed, 12 Mar 2025 21:36:48 +1100
Subject: [PATCH] fix up for "rust: io: rename io::Io accessors"

interacting with "gpu: nova-core: add initial driver stub"

---
 drivers/gpu/nova-core/regs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/nova-core/regs.rs +1 -1
index 50aefb150b0b..b1a25b86ef17 100644
@@ -35,7 +35,7 @@
 impl Boot0 {
     #[inline]
     pub(crate) fn read(bar: &Bar0) -> Self {
-        Self(bar.readl(BOOT0_OFFSET))
+        Self(bar.read32(BOOT0_OFFSET))
     }
 
     #[inline]
Signature · 1 line
2.45.2

Fix looks good to me, thanks!

greg k-h

maintainer
#2 lore raw
Quoted 56 lines · Greg KH
Quoted 55 lines · Stephen Rothwell

Hi all,

After merging the driver-core tree, today's linux-next build (x86_64 allmodconfig) failed like this:

error[E0599]: no method named readl found for reference &Bar<8> in the current scope
--> drivers/gpu/nova-core/regs.rs:38:18

   |
38 |         Self(bar.readl(BOOT0_OFFSET))
   |                  ^^^^^
   |
help: there is a method `read8` with a similar name
   |
38 |         Self(bar.read8(BOOT0_OFFSET))
   |                  ~~~~~

error: aborting due to 1 previous error

For more information about this error, try rustc --explain E0599.

Caused by commit

354fd6e86fac ("rust: io: rename io::Io accessors")

interacting with commit

54e6baf123fd ("gpu: nova-core: add initial driver stub")

from the drm-nova tree.

I applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Wed, 12 Mar 2025 21:36:48 +1100
Subject: [PATCH] fix up for "rust: io: rename io::Io accessors"

interacting with "gpu: nova-core: add initial driver stub"

---
 drivers/gpu/nova-core/regs.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/nova-core/regs.rs +1 -1
index 50aefb150b0b..b1a25b86ef17 100644
@@ -35,7 +35,7 @@
 impl Boot0 {
     #[inline]
     pub(crate) fn read(bar: &Bar0) -> Self {
-        Self(bar.readl(BOOT0_OFFSET))
+        Self(bar.read32(BOOT0_OFFSET))
     }
 
Quoted 6 lines
Quoted 4 lines
drivers/gpu/nova-core/regs.rs +0 -0
     #[inline]
Signature · 1 line
2.45.2

Fix looks good to me, thanks!

+1, thanks for fixing it up!