--- Begin Message ---
do { ... } while(0); do not need the trailing semicolon and may lead to
strange side effects. the following patch fixes it.
--timball
--snip--snip--snip--
diff -ruN linux-2.5.4/drivers/char/drm/i810_dma.c
linux-2.5.4-fixed/drivers/char/drm/i810_dma.c
--- linux-2.5.4/drivers/char/drm/i810_dma.c Sun Feb 10 20:50:14 2002
+++ linux-2.5.4-fixed/drivers/char/drm/i810_dma.c Mon Feb 11 18:14:27
2002
@@ -73,7 +73,7 @@
*(volatile unsigned int *)(virt + outring) = n; \
outring += 4; \
outring &= ringmask; \
-} while (0);
+} while (0)
static inline void i810_print_status_page(drm_device_t *dev)
{
--
GPG key available on pgpkeys.mit.edu
pub 1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <[EMAIL PROTECTED]>
Key fingerprint = B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel
--- End Message ---