Re: 2.5.15 warnings

From: Mikael Pettersson (mikpe@csd.uu.se)
Date: Fri May 10 2002 - 06:54:48 EST


Keith Owens wrote:
> drivers/char/drm/mga_dma.c: In function `mga_do_dma_wrap_start':
> drivers/char/drm/mga_dma.c:244: warning: passing arg 2 of `set_bit' from incompatible pointer type
> drivers/char/drm/mga_dma.c: In function `mga_do_dma_wrap_end':
> drivers/char/drm/mga_dma.c:261: warning: passing arg 2 of `clear_bit' from incompatible pointer type
> drivers/char/drm/mga_dma.c: In function `mga_dma_flush':
> drivers/char/drm/mga_dma.c:710: warning: passing arg 2 of `constant_test_bit' from incompatible pointer type
[and lots more]

This patch silences the drm/mga warnings. Tested; I've been using it for weeks.

/Mikael

--- linux-2.5.15/drivers/char/drm/mga_drv.h.~1~ Wed Feb 20 03:11:05 2002
+++ linux-2.5.15/drivers/char/drm/mga_drv.h Fri May 10 01:54:40 2002
@@ -38,7 +38,7 @@
 
         u32 tail;
         int space;
- volatile int wrapped;
+ volatile long wrapped;
 
         volatile u32 *status;
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 14 2002 - 12:00:13 EST