From patchwork Fri Sep 26 13:16:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 37972 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6B86D202DB for ; Fri, 26 Sep 2014 13:20:48 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id z12sf5159659lbi.6 for ; Fri, 26 Sep 2014 06:20:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=2sISHJsaM8vmOXCemDbhBxXawKNqXO7sI+K4jZYaMVE=; b=W7KR2yq0QDOTFqc8w/frVeHDs4+/F4kgjuvH73ctC23VXO/yHyXOuCpBDyhfnyNgqh VRcgGQmVFd+1Nu+1tRs9n3fuQhmpqX7CHV7vUHrRRQMIjMZ6smxe9UVhfZ/udfV6PDht P06I9PcHMfBBKMpUD86OwgQaIWGv7XPCAEOVBxPM2JzS/j8a3/MJaaS/RbymnmC9lv3b yblsT4sUsTng4oTAwJVQFaf/+13Thr+jFR/vMMIuYwotTEfctRFsuh2C4d2qRAL6eVOI nQP4pZOXvJoa20o0BHDTSZq8L+q0dTOGziwEdCdoZV5LUI6JpbVTQ0ZNp/T9/uJfTWnZ mjIw== X-Gm-Message-State: ALoCoQkVMkBIz7mhtZAhMut8byLzOwdmm24TrCLcKUfw6RVPu7mfPa00IF7LXRgHosexWfBlxsOF X-Received: by 10.112.146.2 with SMTP id sy2mr415448lbb.14.1411737647151; Fri, 26 Sep 2014 06:20:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.141 with SMTP id j13ls394510laa.5.gmail; Fri, 26 Sep 2014 06:20:47 -0700 (PDT) X-Received: by 10.152.205.9 with SMTP id lc9mr20579568lac.34.1411737647012; Fri, 26 Sep 2014 06:20:47 -0700 (PDT) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by mx.google.com with ESMTPS id a4si7231498lbr.29.2014.09.26.06.20.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 06:20:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gi9so4181752lab.19 for ; Fri, 26 Sep 2014 06:20:46 -0700 (PDT) X-Received: by 10.112.163.103 with SMTP id yh7mr19278950lbb.73.1411737646906; Fri, 26 Sep 2014 06:20:46 -0700 (PDT) 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.112.130.169 with SMTP id of9csp59388lbb; Fri, 26 Sep 2014 06:20:46 -0700 (PDT) X-Received: by 10.68.96.4 with SMTP id do4mr31502551pbb.44.1411737645372; Fri, 26 Sep 2014 06:20:45 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id xq3si9058624pbb.253.2014.09.26.06.20.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Sep 2014 06:20:45 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXVQa-0003sB-Ok; Fri, 26 Sep 2014 13:19:16 +0000 Received: from mail-la0-f48.google.com ([209.85.215.48]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXVPT-0002dp-Jt for linux-arm-kernel@lists.infradead.org; Fri, 26 Sep 2014 13:18:08 +0000 Received: by mail-la0-f48.google.com with SMTP id q1so2841318lam.35 for ; Fri, 26 Sep 2014 06:17:47 -0700 (PDT) X-Received: by 10.152.4.165 with SMTP id l5mr20499723lal.49.1411737467440; Fri, 26 Sep 2014 06:17:47 -0700 (PDT) Received: from localhost.localdomain (188-178-240-98-static.dk.customer.tdc.net. [188.178.240.98]) by mx.google.com with ESMTPSA id z4sm1876657laz.39.2014.09.26.06.17.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Sep 2014 06:17:46 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , Gleb Natapov Subject: [PATCH 07/27] KVM: vgic: return int instead of bool when checking I/O ranges Date: Fri, 26 Sep 2014 15:16:40 +0200 Message-Id: <1411737420-9063-8-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1411737420-9063-1-git-send-email-christoffer.dall@linaro.org> References: <1411737420-9063-1-git-send-email-christoffer.dall@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140926_061807_841638_251D090C X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.48 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.48 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: kvm@vger.kernel.org, Marc Zyngier , Will Deacon , 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.18-1 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+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) 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: Will Deacon vgic_ioaddr_overlap claims to return a bool, but in reality it returns an int. Shut sparse up by fixing the type signature. Cc: Christoffer Dall Cc: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Christoffer Dall --- virt/kvm/arm/vgic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 73eba79..d1cfe67 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1690,7 +1690,7 @@ out: return ret; } -static bool vgic_ioaddr_overlap(struct kvm *kvm) +static int vgic_ioaddr_overlap(struct kvm *kvm) { phys_addr_t dist = kvm->arch.vgic.vgic_dist_base; phys_addr_t cpu = kvm->arch.vgic.vgic_cpu_base;