From: Brian Gerst <bgerst@didntduck.org>
To: Andrew Morton <akpm@osdl.org>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [PATCH] Fix warning in prefetch_range
Date: Sat, 24 Apr 2004 19:51:08 -0400 [thread overview]
Message-ID: <408AFD6C.9080100@quark.didntduck.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
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
[-- Attachment #2: prefetch-1 --]
[-- Type: text/plain, Size: 429 bytes --]
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);
next reply other threads:[~2004-04-24 23:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-24 23:51 Brian Gerst [this message]
2004-04-26 5:08 ` Andrew Morton
2004-04-26 12:30 ` Brian Gerst
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=408AFD6C.9080100@quark.didntduck.org \
--to=bgerst@didntduck.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®