From patchwork Tue Aug 26 14:13:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 36029 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EE3252054F for ; Tue, 26 Aug 2014 14:15:47 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id wn1sf85376422obc.6 for ; Tue, 26 Aug 2014 07:15: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=yV+YPt1e0NYJH/nDgTrYTFlpRSCDuCroGeOxA3+gGx8=; b=L3BaJ9qC7tXSloxA7J15vwxsroAtjPtNlRFYhnLiJo+u0erwIbptKc00jzx703+igH l5o/RZAMRrezUrcUUcN4t8nTbfVQKcLr3tRsML6MQgq7vhrhgiQnTkw7AumfrNtIBve1 Gql5jNX8eKzsBbutslXBT7ZxRyaWHAlcQeuO/jcLGK4k4hoVrgk/y3ho67WWdQ69/dKn 2rK/y1Cg2InXh5cUKStWod7nGOMZ7o8kp4i1uJICYyHFcErxNMshHypcxD9Ij6R3ylWh Pd3LF5vyLC3LSK98Nnrek19OdHiScJr7ibozRW5lyCDu1dbowGUwGjKjoUKdoEc+viuG B9ng== X-Gm-Message-State: ALoCoQmYxUddsjMZtNG442zKJv6dObKvyeu3+Ut53DaRPOG3seHRr3VNT8Ep4rwilknJ2QHHAvRp X-Received: by 10.43.64.202 with SMTP id xj10mr1500124icb.0.1409062547333; Tue, 26 Aug 2014 07:15:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.97.134 with SMTP id m6ls2457151qge.8.gmail; Tue, 26 Aug 2014 07:15:47 -0700 (PDT) X-Received: by 10.236.110.110 with SMTP id t74mr1355962yhg.162.1409062547235; Tue, 26 Aug 2014 07:15:47 -0700 (PDT) Received: from mail-yh0-f42.google.com (mail-yh0-f42.google.com [209.85.213.42]) by mx.google.com with ESMTPS id e50si2534791yhe.128.2014.08.26.07.15.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 07:15:47 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.213.42 as permitted sender) client-ip=209.85.213.42; Received: by mail-yh0-f42.google.com with SMTP id a41so11944730yho.29 for ; Tue, 26 Aug 2014 07:15:47 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr431630vdv.86.1409062547149; Tue, 26 Aug 2014 07:15:47 -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.221.45.67 with SMTP id uj3csp202758vcb; Tue, 26 Aug 2014 07:15:46 -0700 (PDT) X-Received: by 10.68.222.168 with SMTP id qn8mr37958351pbc.114.1409062546309; Tue, 26 Aug 2014 07:15:46 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ra9si4749514pbc.54.2014.08.26.07.15.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:15:46 -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 1XMHW9-0001Fa-E4; Tue, 26 Aug 2014 14:14:37 +0000 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMHVE-000885-VN for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 14:13:42 +0000 Received: from edgewater-inn.cambridge.arm.com (edgewater-inn.cambridge.arm.com [10.1.203.34]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id s7QEDIwo011801; Tue, 26 Aug 2014 15:13:18 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 99A6A1AE06BB; Tue, 26 Aug 2014 15:13:37 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 05/11] KVM: vgic: return int instead of bool when checking I/O ranges Date: Tue, 26 Aug 2014 15:13:24 +0100 Message-Id: <1409062410-25891-6-git-send-email-will.deacon@arm.com> X-Mailer: git-send-email 2.1.0.rc1 In-Reply-To: <1409062410-25891-1-git-send-email-will.deacon@arm.com> References: <1409062410-25891-1-git-send-email-will.deacon@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140826_071341_872106_B6514B7F X-CRM114-Status: UNSURE ( 8.61 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [217.140.96.50 listed in list.dnswl.org] 0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record Cc: Marc Zyngier , catalin.marinas@arm.com, Will Deacon , Christoffer Dall 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: will.deacon@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.213.42 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 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 Acked-by: Marc Zyngier Acked-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 73eba793b17f..d1cfe672b9d7 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;