lkml.org 
[lkml]   [2002]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
SubjectRe: 2.5.15 warnings
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/
\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.074 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site