Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp651312imu; Tue, 20 Nov 2018 04:58:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/WXgmQ7WuwNJIX91+2SPU1KzB4D4GIwgIaICvZ6+85WeATU+eQic3J2cy79cPDptsJ6N9Ph X-Received: by 2002:a63:4246:: with SMTP id p67mr1761887pga.335.1542718734306; Tue, 20 Nov 2018 04:58:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542718734; cv=none; d=google.com; s=arc-20160816; b=l4PwOSI/i+j6wkb5WuYqR6yULS3po/qRjwIB8mUBIJ5xvbUFgmP54pRVEXFAn8IE01 +hcCq4fOqsjQydgGscRKLhjZ27xdM9lKMQ0g08COgEty2AA5xdBGDM+f+MnZmL56r5ng qrIe8jLnUDgsFiqtfulFOKgkUxyeqImvUVkYr7nmIxt3hs2Hd8J4Tq8x6iz8dKTUHpsn hMaGfGBgg1DkGRmvAOzPpPpwe29ZOMCzDbLn74sIGXlGAshjhpvQ6VJw8OwPUFy0hjYe CsaBA+C8EtnT4z7wZFGEf9g6HM0ic5KHik3m09izIoJChtfYYi4KhFIMbT2DA9qk2sMc ktVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=6n2j832acgzND3QYXATv/hoFYQ4u2TXqq5D92OxIwcM=; b=KXElYZ6kpcMOQicUESQlt/HZfATeJ9CIEB2W6ICLUL9oqUWSXpgVTXLwbTkVVEZdCG 7VS0Ygsh5oVd7Gc++izUrnPVainQ2FlDnJWctt8mV4Y1p44wIuHsInwoW8XgVm5WH+hD 6TuqCAMSCukZBYTcRQ8J5lUgmvqjaWgd/lRcChGfNnemVDAYZrV6maf/RCHdMcGH6wlc 70/7N8U4azCYS5PudZkePn5X1EGVvKY/h72SXnId5x2vsQhSDVEyp2+LXuO4/9RBCIlo rcyn/W0QRHjqvqu6N3N5rIhtbW05sD78uUySaE8dgDInOAi3+PdlE3rPb/RSMWx9wi3a NkEw== 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 c5si36399452pgq.434.2018.11.20.04.58.39; Tue, 20 Nov 2018 04:58:54 -0800 (PST) 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 S1729307AbeKTWGI (ORCPT + 99 others); Tue, 20 Nov 2018 17:06:08 -0500 Received: from foss.arm.com ([217.140.101.70]:47482 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729099AbeKTWGI (ORCPT ); Tue, 20 Nov 2018 17:06:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 773CC80D; Tue, 20 Nov 2018 03:37:25 -0800 (PST) Received: from e107981-ln.cambridge.arm.com (e107981-ln.cambridge.arm.com [10.1.197.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 216F53F575; Tue, 20 Nov 2018 03:37:23 -0800 (PST) Date: Tue, 20 Nov 2018 11:37:18 +0000 From: Lorenzo Pieralisi To: Julia Lawall Cc: Jianguo Sun , kernel-janitors@vger.kernel.org, Shawn Guo , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: histb: constify dw_pcie_host_ops structure Message-ID: <20181120113718.GA20893@e107981-ln.cambridge.arm.com> References: <1540665079-27788-1-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540665079-27788-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 27, 2018 at 08:31:19PM +0200, Julia Lawall wrote: > 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(-) Applied to pci/dwc for v4.21, thanks. Lorenzo > 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, >