From: tip-bot for Andreas Herrmann <andreas.herrmann3@amd.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
andreas.herrmann3@amd.com, tglx@linutronix.de
Subject: [tip:branch?] x86: memtest: add proper typecast for pointer comparison
Date: Thu, 11 Jun 2009 11:57:35 GMT [thread overview]
Message-ID: <tip-47e64f3c8430d0410c8e83f3e503532491c863c3@git.kernel.org> (raw)
In-Reply-To: <20090611102927.GE12431@alberich.amd.com>
Commit-ID: 47e64f3c8430d0410c8e83f3e503532491c863c3
Gitweb: http://git.kernel.org/tip/47e64f3c8430d0410c8e83f3e503532491c863c3
Author: Andreas Herrmann <andreas.herrmann3@amd.com>
AuthorDate: Thu, 11 Jun 2009 12:29:27 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Thu, 11 Jun 2009 13:53:02 +0200
x86: memtest: add proper typecast for pointer comparison
Commit c9690998ef48ffefeccb91c70a7739eebdea57f9
(x86: memtest: remove 64-bit division) introduced following compile warning:
arch/x86/mm/memtest.c: In function 'memtest':
arch/x86/mm/memtest.c:56: warning: comparison of distinct pointer types lacks a cast
arch/x86/mm/memtest.c:58: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
LKML-Reference: <20090611102927.GE12431@alberich.amd.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/mm/memtest.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/mm/memtest.c b/arch/x86/mm/memtest.c
index c0bedcd..1a8b48f 100644
--- a/arch/x86/mm/memtest.c
+++ b/arch/x86/mm/memtest.c
@@ -53,9 +53,9 @@ static void __init memtest(u64 pattern, u64 start_phys, u64 size)
start_bad = 0;
last_bad = 0;
- for (p = start; p < end; p++)
+ for (p = start; (void *) p < end; p++)
*p = pattern;
- for (p = start; p < end; p++, start_phys_aligned += incr) {
+ for (p = start; (void *) p < end; p++, start_phys_aligned += incr) {
if (*p == pattern)
continue;
if (start_phys_aligned == last_bad + incr) {
next prev parent reply other threads:[~2009-06-11 11:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-11 1:27 linux-next: origin tree build warning Stephen Rothwell
2009-06-11 10:29 ` [PATCH] x86: memtest: fix compile warning Andreas Herrmann
2009-06-11 11:57 ` tip-bot for Andreas Herrmann [this message]
2009-06-11 14:21 ` Thomas Gleixner
2009-06-11 14:30 ` H. Peter Anvin
2009-06-11 15:26 ` Andreas Herrmann
2009-06-12 13:11 ` Andreas Herrmann
2009-06-11 17:19 ` Yinghai Lu
2009-06-11 21:05 ` Thomas Gleixner
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=tip-47e64f3c8430d0410c8e83f3e503532491c863c3@git.kernel.org \
--to=andreas.herrmann3@amd.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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