Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19708C433FE for ; Tue, 4 Jan 2022 15:30:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234828AbiADPaf (ORCPT ); Tue, 4 Jan 2022 10:30:35 -0500 Received: from foss.arm.com ([217.140.110.172]:60838 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbiADPad (ORCPT ); Tue, 4 Jan 2022 10:30:33 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7AF4213A1; Tue, 4 Jan 2022 07:30:32 -0800 (PST) Received: from e123427-lin.arm.com (unknown [10.57.35.194]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CCC613F774; Tue, 4 Jan 2022 07:30:30 -0800 (PST) From: Lorenzo Pieralisi To: Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rikard Falkeborn , Bjorn Helgaas , Manivannan Sadhasivam Cc: Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH] PCI: qcom-ep: Constify static dw_pcie_ep_ops Date: Tue, 4 Jan 2022 15:30:25 +0000 Message-Id: <164131021058.29680.10277687483686428897.b4-ty@arm.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20211204220316.88655-1-rikard.falkeborn@gmail.com> References: <20211204220316.88655-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 4 Dec 2021 23:03:16 +0100, Rikard Falkeborn wrote: > The only usage of pci_ep_ops is to assign its address to the ops field > in the dw_pcie_ep struct which is a pointer to const struct dw_pcie_ep_ops. > Make it const to allow the compiler to put it in read-only memory. > > Applied to pci/qcom, thanks! [1/1] PCI: qcom-ep: Constify static dw_pcie_ep_ops https://git.kernel.org/lpieralisi/pci/c/840a720aaa Thanks, Lorenzo