nvidiafb: fix build on 32-bit ARCH=um
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.
Reported-by Arnd Bergmann <[email protected]>
Signed-off-by Johannes Berg <[email protected]>
--- drivers/video/fbdev/nvidia/nv_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/nvidia/nv_local.h +1 -1
@@ -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
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.
Reported-by Arnd Bergmann <[email protected]>Signed-off-by Johannes Berg <[email protected]>--- drivers/video/fbdev/nvidia/nv_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to fbdev git tree.
Thanks!
Helge