Jimi Xenidis
2006-Aug-18 17:48 UTC
[Xen-devel] [PATCH/RFC] gcc warnings of void * arithmetic
Not sure if you guys want these patches, should I just turn off
-Wpointer-arith in the PPC build or everyone else can turn it on?
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
---
diff -r 66cd49a0e239 xen/drivers/video/vga.c
--- a/xen/drivers/video/vga.c Fri Aug 18 13:30:01 2006 -0400
+++ b/xen/drivers/video/vga.c Fri Aug 18 13:43:30 2006 -0400
@@ -185,17 +185,17 @@ static inline void vga_io_w_fast(uint16_
outw(VGA_OUT16VAL(val, reg), port);
}
-static inline uint8_t vga_mm_r(void __iomem *regbase, uint16_t port)
+static inline uint8_t vga_mm_r(char __iomem *regbase, uint16_t port)
{
return readb(regbase + port);
}
-static inline void vga_mm_w(void __iomem *regbase, uint16_t port, uint8_t val)
+static inline void vga_mm_w(char __iomem *regbase, uint16_t port, uint8_t val)
{
writeb(val, regbase + port);
}
-static inline void vga_mm_w_fast(void __iomem *regbase, uint16_t port, uint8_t
reg, uint8_t val)
+static inline void vga_mm_w_fast(char __iomem *regbase, uint16_t port, uint8_t
reg, uint8_t val)
{
writew(VGA_OUT16VAL(val, reg), regbase + port);
}
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
Maybe Matching Threads
- [PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource
- [PATCH 1/6] iommu/omap: convert to devm_platform_ioremap_resource
- Problems booting with memdisk, with fix
- [LLVMdev] [DragonEgg] Why Fortran's "call flush()" is converted to "call void bitcast (void (...)* @_gfortran_flush_i4 to void (i8*)*)(i8* null) nounwind" ?
- [LLVMdev] [DragonEgg] Why Fortran's "call flush()" is converted to "call void bitcast (void (...)* @_gfortran_flush_i4 to void (i8*)*)(i8* null) nounwind" ?
