From patchwork Mon Aug 12 04:13:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 18993 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 772F2248E6 for ; Mon, 12 Aug 2013 04:13:32 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf7925428qee.6 for ; Sun, 11 Aug 2013 21:13:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=OnOKZpXEWdIhZVLmtyr+W8Zp6oIH5HdySd/1zhwX6XM=; b=ecwVazX4vFy+k6QVrJbUboJlgBAuIp1cGNKiT0nOKHkB6ZiT7KZXVdvw8A1H6lrq3k 6xNsKy02qAEPbgNOLHPMonb9vCpsgjSzgyPeC14RkjMnxHvodRMk37o7BolFiEw4Knh7 ONOGMiNG3lqcklpTBnl4IIbFY1QNfFI25EM+Oxux46PmAkrJsvyV440ZWi/aBeb8u13/ 64t+4akZ92+JIv+HhDIlfK+a8vhjcRb3b716MZ193Spoy/wd9sc5dyUYsDkbDbij1ses /+Ceo+0VvrdiZIVpPlsc1arp9F632EVUQtcmwgqaB6GHYsv9MT2KtgMEezSaSNGykUts AtKg== X-Received: by 10.236.51.225 with SMTP id b61mr9972117yhc.4.1376280812015; Sun, 11 Aug 2013 21:13:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.53.103 with SMTP id a7ls2122019qep.90.gmail; Sun, 11 Aug 2013 21:13:31 -0700 (PDT) X-Received: by 10.52.117.79 with SMTP id kc15mr4637922vdb.45.1376280811839; Sun, 11 Aug 2013 21:13:31 -0700 (PDT) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by mx.google.com with ESMTPS id u1si7820959vcx.58.2013.08.11.21.13.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Aug 2013 21:13:31 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.45 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.45; Received: by mail-vb0-f45.google.com with SMTP id e15so5413774vbg.32 for ; Sun, 11 Aug 2013 21:13:31 -0700 (PDT) X-Gm-Message-State: ALoCoQl9z57BWkTO+tv8xQPHtDK0An5O5UdXcmXLyrG8w7vyM+mhKSu+ZP6evHq6YxTVE7W3QSZ/ X-Received: by 10.220.50.10 with SMTP id x10mr5276486vcf.86.1376280811768; Sun, 11 Aug 2013 21:13:31 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp75029vcz; Sun, 11 Aug 2013 21:13:31 -0700 (PDT) X-Received: by 10.66.164.73 with SMTP id yo9mr11482272pab.120.1376280810950; Sun, 11 Aug 2013 21:13:30 -0700 (PDT) Received: from mail-pd0-f177.google.com (mail-pd0-f177.google.com [209.85.192.177]) by mx.google.com with ESMTPS id vs3si21187128pab.114.2013.08.11.21.13.30 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Aug 2013 21:13:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.177 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.192.177; Received: by mail-pd0-f177.google.com with SMTP id y10so2891652pdj.22 for ; Sun, 11 Aug 2013 21:13:30 -0700 (PDT) X-Received: by 10.66.231.3 with SMTP id tc3mr22698712pac.167.1376280810587; Sun, 11 Aug 2013 21:13:30 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id nj9sm34355902pbc.13.2013.08.11.21.13.28 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 11 Aug 2013 21:13:29 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , Gleb Natapov Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, patches@linaro.org, Christoffer Dall Subject: [PATCH 4/4] KVM: ARM: Squash len warning Date: Sun, 11 Aug 2013 21:13:01 -0700 Message-Id: <1376280781-6539-5-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376280781-6539-1-git-send-email-christoffer.dall@linaro.org> References: <1376280781-6539-1-git-send-email-christoffer.dall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.45 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The 'len' variable was declared an unsigned and then checked for less than 0, which results in warnings on some compilers. Since len is assigned an int, make it an int. Signed-off-by: Christoffer Dall --- arch/arm/kvm/mmio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kvm/mmio.c b/arch/arm/kvm/mmio.c index b8e06b7..0c25d94 100644 --- a/arch/arm/kvm/mmio.c +++ b/arch/arm/kvm/mmio.c @@ -63,7 +63,8 @@ int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run) static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa, struct kvm_exit_mmio *mmio) { - unsigned long rt, len; + unsigned long rt; + int len; bool is_write, sign_extend; if (kvm_vcpu_dabt_isextabt(vcpu)) {