From patchwork Mon May 4 01:52:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 47962 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E54452121F for ; Mon, 4 May 2015 01:55:28 +0000 (UTC) Received: by laat2 with SMTP id t2sf42175803laa.2 for ; Sun, 03 May 2015 18:55:27 -0700 (PDT) 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:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=fE/WyDNVp7dcryh7nE1PF9tbSPjweSnqsSebOatRfFg=; b=NsFfYkGycQWqys1Ai8RwiWLt5t/6aLFZb4IPoVXjAqfH8cZBVcDjdFN7UKio2xyYVG 9iv0kQasyrBQF2y2fvPFbVeuveT2lhOKcKfrvHuNvKnSDTWFi2OqEy5eyMnTu4mLOtRl olzAAxrptqanXyq1GTQOSanQ0/dFqC1e6XYThWL4CV25gwJAsG9V4+1vCyzGehPqO2+q v98DfKfP5n2GRI4ZrIcJBZT268SuPtjhQPv9sNFtqlWnkz8mSlQtXkreiGK49ixHF2Db C7/NTr4hy1m7IZlJBFY3SG7tkq/gV8ZczdmyPjEDSVYQxvbKtSEZZaWrUKpgG0j7Ptn0 clZg== X-Gm-Message-State: ALoCoQmsIU4fM+D/CHubHTnCfgNSUiV+Hxtq7ddlX9jE0mXoyqxEJRtsr2UkEMwJaI4BhYtecr0o X-Received: by 10.180.74.197 with SMTP id w5mr6860240wiv.5.1430704527942; Sun, 03 May 2015 18:55:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.70 with SMTP id le6ls713216lac.50.gmail; Sun, 03 May 2015 18:55:27 -0700 (PDT) X-Received: by 10.112.25.69 with SMTP id a5mr17350375lbg.16.1430704527788; Sun, 03 May 2015 18:55:27 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id ei7si9064295lad.156.2015.05.03.18.55.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2015 18:55:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbcga7 with SMTP id ga7so95746880lbc.1 for ; Sun, 03 May 2015 18:55:27 -0700 (PDT) X-Received: by 10.152.236.40 with SMTP id ur8mr17714636lac.19.1430704527706; Sun, 03 May 2015 18:55:27 -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.67.65 with SMTP id l1csp1412938lbt; Sun, 3 May 2015 18:55:27 -0700 (PDT) X-Received: by 10.69.17.68 with SMTP id gc4mr37640730pbd.7.1430704525993; Sun, 03 May 2015 18:55:25 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ix6si17838787pac.46.2015.05.03.18.55.25; Sun, 03 May 2015 18:55:25 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751926AbbEDBzY (ORCPT + 2 others); Sun, 3 May 2015 21:55:24 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:35269 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbbEDBzY (ORCPT ); Sun, 3 May 2015 21:55:24 -0400 Received: by pdbqd1 with SMTP id qd1so150093607pdb.2 for ; Sun, 03 May 2015 18:55:24 -0700 (PDT) X-Received: by 10.70.91.206 with SMTP id cg14mr38487751pdb.158.1430704523979; Sun, 03 May 2015 18:55:23 -0700 (PDT) Received: from localhost ([180.150.153.1]) by mx.google.com with ESMTPSA id dc5sm11009278pbc.53.2015.05.03.18.55.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 03 May 2015 18:55:22 -0700 (PDT) From: shannon.zhao@linaro.org To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, christoffer.dall@linaro.org, shannon.zhao@linaro.org, Will Deacon , Marc Zyngier Subject: [PATCH for 3.14.y stable 25/47] KVM: vgic: return int instead of bool when checking I/O ranges Date: Mon, 4 May 2015 09:52:20 +0800 Message-Id: <1430704362-6292-26-git-send-email-shannon.zhao@linaro.org> X-Mailer: git-send-email 1.9.5.msysgit.1 In-Reply-To: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> References: <1430704362-6292-1-git-send-email-shannon.zhao@linaro.org> Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: shannon.zhao@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.217.175 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Will Deacon commit 1fa451bcc67fa921a04c5fac8dbcde7844d54512 upstream. 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 Signed-off-by: Shannon Zhao --- 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 4eec2d4..1316e55 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1654,7 +1654,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;