Skip to contentSkip to conversation

nvidiafb: fix build on 32-bit ARCH=um

PATCH Applied Johannes Berg 2 participants 2 messages Jun 6, 2025

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

PATCH 1/1 nvidiafb: fix build on 32-bit ARCH=um

From: Johannes Berg <[email protected]>

Now that ARCH=um no longer has IO port accesses, this driver can no longer build as-is. Make the IO port calls not just conditional on i386 but also !UML.

---
 drivers/video/fbdev/nvidia/nv_local.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/nvidia/nv_local.h +1 -1
index 68e508daa417..93aff35305a9 100644
@@ -80,7 +80,7 @@
      (par)->dmaFree -= ((size) + 1);          \
 }
 
-#if defined(__i386__)
+#if defined(__i386__) && !defined(CONFIG_UML)
 #define _NV_FENCE() outb(0, 0x3D0);
 #else
 #define _NV_FENCE() mb();
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw
Quoted 11 lines · Johannes Berg

From: Johannes Berg <[email protected]>

Now that ARCH=um no longer has IO port accesses, this driver can no longer build as-is. Make the IO port calls not just conditional on i386 but also !UML.

---
  drivers/video/fbdev/nvidia/nv_local.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to fbdev git tree.

Thanks!
Helge