[PATCH 4/5] xfree86: Fix a compiler warning on 64-bit.
Eric Anholt
eric at anholt.net
Mon Jan 27 11:36:08 PST 2014
asm/mtrr.h makes this an unsigned long on 32, but a u64 on 64. Cast
it to a long to win.
---
hw/xfree86/os-support/linux/lnx_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/xfree86/os-support/linux/lnx_video.c b/hw/xfree86/os-support/linux/lnx_video.c
index 824003d..47f5abc 100644
--- a/hw/xfree86/os-support/linux/lnx_video.c
+++ b/hw/xfree86/os-support/linux/lnx_video.c
@@ -204,7 +204,7 @@ mtrr_cull_wc_region(int screenNum, unsigned long base, unsigned long size,
xf86DrvMsgVerb(screenNum, X_WARNING, 0,
"Failed to remove MMIO "
"write-combining range (0x%lx,0x%lx)\n",
- gent.base, (unsigned long) gent.size);
+ (unsigned long)gent.base, (unsigned long) gent.size);
}
}
return wcreturn;
--
1.8.5.3
More information about the xorg-devel
mailing list