Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1582433imd; Sat, 27 Oct 2018 12:12:09 -0700 (PDT) X-Google-Smtp-Source: AJdET5fbgOC5APbK/q2CF2kgkvgXjSvG1Mmx3rSGs8xpRWS7Boi1z5I7PXnpNx/JGQ1Li92LSsjr X-Received: by 2002:a17:902:7587:: with SMTP id j7-v6mr8138399pll.67.1540667529780; Sat, 27 Oct 2018 12:12:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540667529; cv=none; d=google.com; s=arc-20160816; b=G8yDIZ9MFugSPgR93KfI3/hXN47bK/1Aohxgtzn9iMElNdqNeE7C205FxgtsKE3f/j XbcAnbiFlmCXOkWOy5iE0mb/6U+1D67vZI46pBAITeDCHQJSyE4Xdw12pnArNUIDojZp SY3DusV7kx8dl9HMQIIW1zOUJWk7FnMNXasWF9OIRuWGkQ3QVIlhHR5K3zWuHSec5Hc4 PJd4a8B8m3fdbYVKbOlOhJBDl0jq9+cwp8TwwAwshYHfRdgQimt2unRYOx1mabeIzBFC Ewuj3KR8y/NNmDGcq6siNYi3nxGopb1Oewm1zF/EnTKdM8XfTGCJx8z16KamQqkL89Uy r02A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=s8TK05rNeamiV/ge2H5b1QzXGEIO4lzRUQEwPKLyDvw=; b=ttMoKRPF9F8vzK/KJsHY9fAqPoHgqz4nFNROQxU3138Db35MpzlszyS3GSnJtU2bwD mdpmfervmsVSXvbe+yz8V0GezJZKPLLFxABnc1SIUK7UEqiyXt0Z+ziWnRZw8M++nC1E /c/ByEkdtoOx7U4ajOeVIOGiZN99Wu08gtlKMFAVokssVh2CeH4UDEtBS8M96s0EEA3Y vJ32fxzOTh8jwtHe6jQdlMgbE8kHaKo2p/UsAhRcLjzbWV1XHa+H5Yms+V2fUZaTavD3 KAQ3CFchtQXqbE69CMMJG+K4AQQlgYBh5AM0++sbMv3k/X+ceeVpHtZzfTwWNay9b9ft s/0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v10-v6si15612933pgg.216.2018.10.27.12.11.21; Sat, 27 Oct 2018 12:12:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728879AbeJ1Dsb (ORCPT + 99 others); Sat, 27 Oct 2018 23:48:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:6204 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbeJ1Dsb (ORCPT ); Sat, 27 Oct 2018 23:48:31 -0400 X-IronPort-AV: E=Sophos;i="5.54,433,1534802400"; d="scan'208";a="353101584" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 21:06:34 +0200 From: Julia Lawall To: Jianguo Sun Cc: kernel-janitors@vger.kernel.org, Shawn Guo , Lorenzo Pieralisi , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PCI: histb: constify dw_pcie_host_ops structure Date: Sat, 27 Oct 2018 20:31:19 +0200 Message-Id: <1540665079-27788-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dw_pcie_host_ops structure is only stored in the ops field of a pcie_port structure, and this field is const, so make the dw_pcie_host_ops structure const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/pci/controller/dwc/pcie-histb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -u -p a/drivers/pci/controller/dwc/pcie-histb.c b/drivers/pci/controller/dwc/pcie-histb.c --- a/drivers/pci/controller/dwc/pcie-histb.c +++ b/drivers/pci/controller/dwc/pcie-histb.c @@ -202,7 +202,7 @@ static int histb_pcie_host_init(struct p return 0; } -static struct dw_pcie_host_ops histb_pcie_host_ops = { +static const struct dw_pcie_host_ops histb_pcie_host_ops = { .rd_own_conf = histb_pcie_rd_own_conf, .wr_own_conf = histb_pcie_wr_own_conf, .host_init = histb_pcie_host_init,