lkml.org 
[lkml]   [2004]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix warning in prefetch_range
Fix this warning:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in
arithmetic

--
Brian Gerst
diff -urN linux-2.6.5-rc1-bk/include/linux/prefetch.h linux/include/linux/prefetch.h
--- linux-2.6.5-rc1-bk/include/linux/prefetch.h 2004-04-14 23:53:11.000000000 -0400
+++ linux/include/linux/prefetch.h 2004-04-16 11:12:25.840194048 -0400
@@ -59,7 +59,7 @@
{
#ifdef ARCH_HAS_PREFETCH
char *cp;
- char *end = addr + len;
+ char *end = (char *)addr + len;

for (cp = addr; cp < end; cp += PREFETCH_STRIDE)
prefetch(cp);
\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.038 / U:0.704 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site