From patchwork Tue Aug 26 14:13:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Deacon X-Patchwork-Id: 36032 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f199.google.com (mail-yk0-f199.google.com [209.85.160.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 855992054F for ; Tue, 26 Aug 2014 14:16:24 +0000 (UTC) Received: by mail-yk0-f199.google.com with SMTP id 79sf49177325ykr.10 for ; Tue, 26 Aug 2014 07:16:24 -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=tGYUp3ZHwqwu61S9nwAuuLZKOWl5UPf4Iv2XX5iVyUo=; b=JyJ+2rzMwgLtIVGIC+9JSts6BZZX/JJd2JrYI3lj4lkCME2065ShBxyhqiRNwUp4WC M+sfsmBy61L3lDQkSb4ab5M3aXAc5h5j9B58XnQ1PR/iAMoOmwJ54US3biG5gTFAJimV rTbJNRoRXkHbsTYyszzdDQx3Qi5p9dUviEwcEIbxya501pXYvvU1QqKm9gDJGVDGsJKz DxcRMssnSa1gKUcIofl4k3mlpeKo4m8KqKfgCP/+dR5MfrJhbEhRXljlnFZQNHa22aYu yy0MXTOUAzkHMsdme1SmOLyGFjwl5luSmJzoKPxEMDa4vX2ckVn+ykzWHWqiv1ytDnzQ m3FA== X-Gm-Message-State: ALoCoQl0L2t1VsXFPSHCeLhSjRqlivYRQ/aH1742h0uijlx8W/6zWFkB/eTnO6jcOyu70uO5K9BA X-Received: by 10.236.105.197 with SMTP id k45mr5273419yhg.19.1409062584379; Tue, 26 Aug 2014 07:16:24 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.176 with SMTP id p45ls1604771qgd.57.gmail; Tue, 26 Aug 2014 07:16:24 -0700 (PDT) X-Received: by 10.236.177.71 with SMTP id c47mr2056076yhm.116.1409062584248; Tue, 26 Aug 2014 07:16:24 -0700 (PDT) Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mx.google.com with ESMTPS id t69si2663804yht.12.2014.08.26.07.16.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 07:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.160.177 as permitted sender) client-ip=209.85.160.177; Received: by mail-yk0-f177.google.com with SMTP id 79so11252026ykr.22 for ; Tue, 26 Aug 2014 07:16:24 -0700 (PDT) X-Received: by 10.52.120.51 with SMTP id kz19mr80189vdb.95.1409062584149; Tue, 26 Aug 2014 07:16:24 -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 uj3csp202816vcb; Tue, 26 Aug 2014 07:16:23 -0700 (PDT) X-Received: by 10.68.239.201 with SMTP id vu9mr38038138pbc.35.1409062583341; Tue, 26 Aug 2014 07:16:23 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id fl4si4680393pab.92.2014.08.26.07.16.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Aug 2014 07:16:23 -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 1XMHWp-0003LK-NZ; Tue, 26 Aug 2014 14:15:19 +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 1XMHVG-00084a-Nx for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 14:13:43 +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 s7QEDIwo011798; Tue, 26 Aug 2014 15:13:18 +0100 (BST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 8D6E41AE0674; Tue, 26 Aug 2014 15:13:37 +0100 (BST) From: Will Deacon To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 06/11] KVM: vgic: declare probe function pointer as const Date: Tue, 26 Aug 2014 15:13:25 +0100 Message-Id: <1409062410-25891-7-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_071343_184250_EF29F749 X-CRM114-Status: GOOD ( 10.68 ) 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 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.160.177 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 We extract the vgic probe function from the of_device_id data pointer, which is const. Kill the sparse warning by ensuring that the local function pointer is also marked as const. Cc: Marc Zyngier Signed-off-by: Will Deacon Acked-by: Marc Zyngier Acked-by: Christoffer Dall --- virt/kvm/arm/vgic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index d1cfe672b9d7..efe6eee2e7eb 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -1557,8 +1557,8 @@ static const struct of_device_id vgic_ids[] = { int kvm_vgic_hyp_init(void) { const struct of_device_id *matched_id; - int (*vgic_probe)(struct device_node *,const struct vgic_ops **, - const struct vgic_params **); + const int (*vgic_probe)(struct device_node *,const struct vgic_ops **, + const struct vgic_params **); struct device_node *vgic_node; int ret;