Skip to contentSkip to conversation

Another small compile fix

PATCH [email protected] 1 participant 1 message Jun 1, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

I wonder if they ever compile FB drivers with arches where BITS_PER_LONG !=32...

Index: include/linux/fb.h
===================================================================
RCS file: /home/cvs/linux/include/linux/fb.h,v
retrieving revision 1.30

linux/fb.h 1 Jun 2003 19:28:32 -0000 renamed from linux/fb.h 1 Jun 2003 12:07:45 -0000 1.30 +2 -0
diff -u -r1.30 fb.h
@@ -432,9 +432,11 @@
 #define fb_readb(addr) (*(volatile u8 *) (addr))
 #define fb_readw(addr) (*(volatile u16 *) (addr))
 #define fb_readl(addr) (*(volatile u32 *) (addr))
+#define fb_readq(addr) (*(volatile u64 *) (addr))
 #define fb_writeb(b,addr) (*(volatile u8 *) (addr) = (b))
 #define fb_writew(b,addr) (*(volatile u16 *) (addr) = (b))
 #define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b))
+#define fb_writeq(b,addr) (*(volatile u64 *) (addr) = (b))
 #define fb_memset memset
 
 #endif

Index: drivers/video/cfbcopyarea.c
===================================================================
RCS file: /home/cvs/linux/drivers/video/cfbcopyarea.c,v retrieving revision 1.4

video/cfbcopyarea.c 1 Jun 2003 19:30:55 -0000 renamed from video/cfbcopyarea.c 1 Jun 2003 12:07:43 -0000 1.4 +1 -1
diff -u -r1.4 cfbcopyarea.c
@@ -38,7 +38,7 @@
 #define BYTES_PER_LONG 4
 #else
 #define FB_WRITEL fb_writeq
-#define FB_READL  fb_readq(x)
+#define FB_READL  fb_readq
 #define SHIFT_PER_LONG 6
 #define BYTES_PER_LONG 8
 #endif