[PATCH] nvidiafb: fix build on 32-bit ARCH=um
Johannes Berg
johannes at sipsolutions.net
Fri Jun 6 09:02:19 UTC 2025
From: Johannes Berg <johannes.berg at intel.com>
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.
Reported-by: Arnd Bergmann <arnd at arndb.de>
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
drivers/video/fbdev/nvidia/nv_local.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/video/fbdev/nvidia/nv_local.h b/drivers/video/fbdev/nvidia/nv_local.h
index 68e508daa417..93aff35305a9 100644
--- a/drivers/video/fbdev/nvidia/nv_local.h
+++ b/drivers/video/fbdev/nvidia/nv_local.h
@@ -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();
--
2.49.0
More information about the dri-devel
mailing list