From patchwork Wed Feb 26 18:02:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 25370 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f197.google.com (mail-yk0-f197.google.com [209.85.160.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DC08E20636 for ; Wed, 26 Feb 2014 18:05:32 +0000 (UTC) Received: by mail-yk0-f197.google.com with SMTP id 142sf6726439ykq.0 for ; Wed, 26 Feb 2014 10:05:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=31CepcMNbFohpyZ4P5Nesu2nlIjtsAaC3/O/Vmp2wgE=; b=AB4I+jmtuGcfFoz6c/4o+25ANCkmZiTo9A3bmYHyuWoDY5p2MG2EbWnjcTavF+vCrU mOgBq+m+QqXRaB3Mh/5LedcBj3zw+Scn8IunQPGwFgwBAHFSLV9+bcP8TQb/lV59yvxD s3mD8R5A3xLkFtgmqusbDiYohVRAw1FJuC43JkVmzyJ4iMviVSUbKL7JsPvqV2RLu6CE g7XRc53ISSB93VXeQM/g5Ph6AxELMG2BVj00DFkxtJ7iyO3lwAyzRyet61NOs2N8FhrI pcUtwyCzW6dJ07Q7Prhf1MK/rq+BN/bEuGf81ZimCpB/oS8CUVXpJ2zaowakrQO6hlJr GPXw== X-Gm-Message-State: ALoCoQnCa5x9auWGbHLVpGVspi1A35o+gwDpD576h2Es/yv2C4XBsTFoMW97lWwkq5v5cozHqr6A X-Received: by 10.236.129.41 with SMTP id g29mr2838027yhi.20.1393437932621; Wed, 26 Feb 2014 10:05:32 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.110 with SMTP id y101ls337531qgd.0.gmail; Wed, 26 Feb 2014 10:05:32 -0800 (PST) X-Received: by 10.52.30.230 with SMTP id v6mr5821931vdh.6.1393437932449; Wed, 26 Feb 2014 10:05:32 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id uc1si431457vcb.53.2014.02.26.10.05.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 10:05:32 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so1022542veb.28 for ; Wed, 26 Feb 2014 10:05:32 -0800 (PST) X-Received: by 10.58.107.167 with SMTP id hd7mr3698veb.66.1393437932375; Wed, 26 Feb 2014 10:05:32 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp44648vcz; Wed, 26 Feb 2014 10:05:32 -0800 (PST) X-Received: by 10.140.101.162 with SMTP id u31mr944441qge.107.1393437931840; Wed, 26 Feb 2014 10:05:31 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 39si419226qgx.191.2014.02.26.10.05.31 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 10:05:31 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:42150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIirL-0004bo-Cm for patch@linaro.org; Wed, 26 Feb 2014 13:05:31 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIioi-0000lQ-IC for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIioh-0007Jx-9f for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:48 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:46191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIioh-0007Eu-3j for qemu-devel@nongnu.org; Wed, 26 Feb 2014 13:02:47 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1WIioX-0006DX-Qt; Wed, 26 Feb 2014 18:02:37 +0000 From: Peter Maydell To: Anthony Liguori Date: Wed, 26 Feb 2014 18:02:30 +0000 Message-Id: <1393437755-23586-41-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1393437755-23586-1-git-send-email-peter.maydell@linaro.org> References: <1393437755-23586-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Blue Swirl , qemu-devel@nongnu.org, Aurelien Jarno Subject: [Qemu-devel] [PULL 40/45] dma/pl330: Fix misleading type X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Peter Crosthwaite This type really should just be a regular int as no usages rely on it's 32 bitness (it's only meaningful as a bit position and not a bit mask). This also fixes a printf which uses the variable with a regular %d. Signed-off-by: Peter Crosthwaite Reviewed-by: Peter Maydell Message-id: 2a99d31f377aee371476d9da8fd0d1b7efa30f63.1393372019.git.peter.crosthwaite@xilinx.com Signed-off-by: Peter Maydell --- hw/dma/pl330.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c index 68adf39..d36f0bc 100644 --- a/hw/dma/pl330.c +++ b/hw/dma/pl330.c @@ -1310,7 +1310,7 @@ static void pl330_iomem_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { PL330State *s = (PL330State *) opaque; - uint32_t i; + int i; DB_PRINT("addr: %08x data: %08x\n", (unsigned)offset, (unsigned)value);