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: 2842854 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 838539F239 for ; Mon, 12 Aug 2013 04:15:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B03E72028F for ; Mon, 12 Aug 2013 04:15:30 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BD36C20284 for ; Mon, 12 Aug 2013 04:15:29 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8jWg-0003sU-HE; Mon, 12 Aug 2013 04:14:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8jWI-0005y4-Qc; Mon, 12 Aug 2013 04:14:14 +0000 Received: from mail-pb0-f47.google.com ([209.85.160.47]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V8jVv-0005tY-Tb for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2013 04:13:53 +0000 Received: by mail-pb0-f47.google.com with SMTP id rr4so6315940pbb.20 for ; Sun, 11 Aug 2013 21:13:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OnOKZpXEWdIhZVLmtyr+W8Zp6oIH5HdySd/1zhwX6XM=; b=iStJUhvW1v8WnGvjcaE+c1ZnKFDtKFhsW4CUZrw5F+bXXYi7Zm/s2QvlACLCAL6GV0 oTC9Ic8d1Cdyil8Cj8yL7cNZZ/QJZv0Pf8uN5nP5JQPavXubwK/gvzZ184hBPxlVN4vK N4jZa0CQIowQihCCqcoUeCsukQftUDUt/pJKpJIvEnerfz/XAMjUi3Y5r4gQx4nZJ9vF Ab6RHHHRFffgHUpXuTaoXcaOORA2P+5VzxEiljVIT0T1Bok87Tr1uplHOJ/bNusXStct 1+tzj9AxtbQuXn/k1MVeBO0ZelvBc0jYAQzy6nGofps2MTt3y6XFul8EW5Y8hmYSr7CP 5AGg== X-Gm-Message-State: ALoCoQmSMUMEfVvsSGsC5hz09iaNkc7rB6qhTjYurD/wxKcTD10AXx7INP45HubwKkc/0qpWdST6 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130812_001352_270061_F7D130E5 X-CRM114-Status: UNSURE ( 8.87 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, kvm@vger.kernel.org, patches@linaro.org, Christoffer Dall , kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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)) {