Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762814AbZFKKpk (ORCPT ); Thu, 11 Jun 2009 06:45:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756986AbZFKKpc (ORCPT ); Thu, 11 Jun 2009 06:45:32 -0400 Received: from tx2ehsobe005.messaging.microsoft.com ([65.55.88.15]:36408 "EHLO TX2EHSOBE010.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757491AbZFKKpb (ORCPT ); Thu, 11 Jun 2009 06:45:31 -0400 X-Greylist: delayed 906 seconds by postgrey-1.27 at vger.kernel.org; Thu, 11 Jun 2009 06:45:31 EDT X-SpamScore: -3 X-BigFish: VPS-3(zz4015Lzz1202hzzz32i6bh17ch) X-FB-SS: 13, X-WSS-ID: 0KL2L6G-02-7S7-01 Date: Thu, 11 Jun 2009 12:29:27 +0200 From: Andreas Herrmann To: Stephen Rothwell , Ingo Molnar , Thomas Gleixner CC: "H. Peter Anvin" , Peter Zijlstra , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86: memtest: fix compile warning Message-ID: <20090611102927.GE12431@alberich.amd.com> References: <20090611112746.802a24cb.sfr@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20090611112746.802a24cb.sfr@canb.auug.org.au> User-Agent: Mutt/1.5.16 (2007-06-09) X-OriginalArrivalTime: 11 Jun 2009 10:30:18.0159 (UTC) FILETIME=[9D8A1BF0:01C9EA7F] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 44 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 --- arch/x86/mm/memtest.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Sorry. Please apply. Thanks, Andreas 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) { -- 1.6.3.1 -- 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/