lkml.org 
[lkml]   [2005]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] avoid sparse warning due to time-interpolator
The "addr" member in the time-interpolator is sometimes used as a
function-pointer and sometimes as an I/O-memory pointer. The attached
patch tells sparse that this is OK.

Signed-off-by: David Mosberger-Tang <davidm@hpl.hp.com>

===== kernel/timer.c 1.109 vs edited =====
--- 1.109/kernel/timer.c 2005-01-11 16:42:35 -08:00
+++ edited/kernel/timer.c 2005-01-14 22:05:53 -08:00
@@ -1411,10 +1411,10 @@
return x();

case TIME_SOURCE_MMIO64 :
- return readq(time_interpolator->addr);
+ return readq((void __iomem *) time_interpolator->addr);

case TIME_SOURCE_MMIO32 :
- return readl(time_interpolator->addr);
+ return readl((void __iomem *) time_interpolator->addr);

default: return get_cycles();
}
-
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 14:09    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site