From patchwork Tue Apr 7 17:57:50 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 458747 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 005A314021A for ; Wed, 8 Apr 2015 03:58:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80E98A7421; Tue, 7 Apr 2015 19:58:02 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vg3XYNdIOEI2; Tue, 7 Apr 2015 19:58:02 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9ED0A4A039; Tue, 7 Apr 2015 19:58:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A7D844A039 for ; Tue, 7 Apr 2015 19:57:59 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZoDDJFCRTpSt for ; Tue, 7 Apr 2015 19:57:59 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-vn0-f47.google.com (mail-vn0-f47.google.com [209.85.216.47]) by theia.denx.de (Postfix) with ESMTPS id 3E4624A033 for ; Tue, 7 Apr 2015 19:57:55 +0200 (CEST) Received: by vnbg62 with SMTP id g62so9999077vnb.6 for ; Tue, 07 Apr 2015 10:57:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:subject:date:message-id; bh=LEHXiJXCGg+6EeLos0460eKKIMA6+wpECXFQe9+9NMM=; b=BCcsxxlr6Dmsf8LlqfUjELHuUk9HJ5JHSftuOdJ7oATDnzA8YoxNW5R+PBNgSZT37s CJ456ci3sy6tMDjYGsE3fzg1F2+OkjXp1XXdu1xm8JeFibjgrHgfrvw0+Olry5agzCg6 OsPqn8PsDX79zbDhRcihXK8m8utwErI4hxgh6BIOTB0K3+lxCfdk7QbphvP1dKUZ+Yux YhsY09zJ//9TspHSHc3+NE+i5Qj7bO++xDjLKUItTexAeqMJ0VUuIoBWcRFLY5URvTNP Q8GvFgTWogd2uOEFzwMVAMjhzgMCWbdY4RYupMfh/K//LXSLLrI+EoygmTsFv0ZKTT8A joeA== X-Received: by 10.236.19.170 with SMTP id n30mr19381853yhn.2.1428429474191; Tue, 07 Apr 2015 10:57:54 -0700 (PDT) Received: from localhost.localdomain (cpe-174-106-48-186.ec.res.rr.com. [174.106.48.186]) by mx.google.com with ESMTPSA id v18sm6922276yha.16.2015.04.07.10.57.53 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 Apr 2015 10:57:53 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Tue, 7 Apr 2015 13:57:50 -0400 Message-Id: <1428429470-1325-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH] cmd_mem.c: Update 'iteration_limit' to unsigned long X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" With e37f1eb we now use strict_strtoul() in do_mem_mtest() and this gives us a warning: ../include/vsprintf.h:38:5: note: expected 'long unsigned int *' but argument is of type 'int *' Signed-off-by: Tom Rini --- common/cmd_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cmd_mem.c b/common/cmd_mem.c index 20a875c..3f85c1a 100644 --- a/common/cmd_mem.c +++ b/common/cmd_mem.c @@ -999,7 +999,7 @@ static int do_mem_mtest(cmd_tbl_t *cmdtp, int flag, int argc, { ulong start, end; vu_long *buf, *dummy; - int iteration_limit = 0; + ulong iteration_limit = 0; int ret; ulong errs = 0; /* number of errors, or -1 if interrupted */ ulong pattern = 0;