From patchwork Fri Sep 26 13:16:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 37974 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CF1B4202DB for ; Fri, 26 Sep 2014 13:21:37 +0000 (UTC) Received: by mail-lb0-f198.google.com with SMTP id 10sf7213368lbg.9 for ; Fri, 26 Sep 2014 06:21:36 -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=H9cdiVCQma0EvepbyUnzrJEsMrzqIWcoPQjugGhGsFY=; b=E7ypvad4cGJQTIXpNcYasr4z8FBoUiGM5R/ylYGcbmCoWLjO/1iI99cJCpYpPxPDt6 /ljUI9hWx4bDD6hMOLojIlcXRWP8MHwqY354sQbA0hlfN8xyOoSgzHjCObP1CtBW/UZ2 DCohTPlESg8selmp4VpPny0bXIcJ9wU2qiAXmyCbHuDt0lOUQjKF0YV9ZJTQ3ezgW0qi VavCuxKSmyY15Gbi+pTkYe1ieCKjbI4/cVvgsRmr3iKGpfmJpXbE7cv11Slgp/jx86z9 waFy5mEdFhNONgTlZ+nKobTR6g1yULzmJk4OFxEe2uRh8wZij9vs3efr6TNmUrhgqEiQ N0qA== X-Gm-Message-State: ALoCoQmPH/nsCP4X+zAprjEhA1eaDS63ivdKEEuM33NGWagzK6TEDXSfASXccPUxxmvCLlA9QVxC X-Received: by 10.152.3.134 with SMTP id c6mr613005lac.5.1411737696590; Fri, 26 Sep 2014 06:21:36 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.201 with SMTP id u9ls394431lau.107.gmail; Fri, 26 Sep 2014 06:21:36 -0700 (PDT) X-Received: by 10.152.21.136 with SMTP id v8mr20512647lae.41.1411737696459; Fri, 26 Sep 2014 06:21:36 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) by mx.google.com with ESMTPS id wo3si7179474lbb.66.2014.09.26.06.21.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 06:21:36 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id 10so12684294lbg.18 for ; Fri, 26 Sep 2014 06:21:36 -0700 (PDT) X-Received: by 10.112.163.103 with SMTP id yh7mr19283223lbb.73.1411737696348; Fri, 26 Sep 2014 06:21:36 -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 of9csp59518lbb; Fri, 26 Sep 2014 06:21:35 -0700 (PDT) X-Received: by 10.68.193.194 with SMTP id hq2mr17857999pbc.169.1411737694802; Fri, 26 Sep 2014 06:21:34 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id di2si9103721pbb.224.2014.09.26.06.21.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Sep 2014 06:21:34 -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 1XXVRD-0004bu-Qb; Fri, 26 Sep 2014 13:19:55 +0000 Received: from mail-lb0-f169.google.com ([209.85.217.169]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XXVPY-0002ez-JJ for linux-arm-kernel@lists.infradead.org; Fri, 26 Sep 2014 13:18:13 +0000 Received: by mail-lb0-f169.google.com with SMTP id u10so1051188lbd.0 for ; Fri, 26 Sep 2014 06:17:49 -0700 (PDT) X-Received: by 10.152.23.69 with SMTP id k5mr20580546laf.70.1411737469204; Fri, 26 Sep 2014 06:17:49 -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.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Sep 2014 06:17:48 -0700 (PDT) From: Christoffer Dall To: Paolo Bonzini , Gleb Natapov Subject: [PATCH 08/27] KVM: vgic: declare probe function pointer as const Date: Fri, 26 Sep 2014 15:16:41 +0200 Message-Id: <1411737420-9063-9-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_061812_840029_C5237828 X-CRM114-Status: GOOD ( 11.35 ) 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.217.169 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.217.169 listed in wl.mailspike.net] -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.217.173 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 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 Signed-off-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 d1cfe67..efe6eee 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;