From mboxrd@z Thu Jan 1 00:00:00 1970 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 55B80EB64DD for ; Mon, 24 Jul 2023 06:03:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229897AbjGXGDO (ORCPT ); Mon, 24 Jul 2023 02:03:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbjGXGDI (ORCPT ); Mon, 24 Jul 2023 02:03:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D27D7E4E for ; Sun, 23 Jul 2023 23:03:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 202BB60F2F for ; Mon, 24 Jul 2023 06:03:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED5E9C433CC; Mon, 24 Jul 2023 06:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690178582; bh=CvMlmwUTKbn+WYX0ksba8VbKF+8uttgryndWZw9Dpw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NkXSuInN1tQjZ76afG8tnNsZ6AIA6UYcYucqwql3hd56FI7vRV2GgBVQte9zxv3OP v+0Q7vM/+mNx+cxy+O+nkUEr14ZQf1U98hIAPDQklHY7rBpIpphLiryaCGDg9elyPk Ifd0GzYY05rt6O/I5Isu3F7Wm/iMN3CAx58Fe+qqkbtouY8dnQOJfMMzAwm9Jn1zNl ygLgvEj6ziCfnqV6sGXjogkSag7g/6EtM/2jPhlNdrtCwYmAUzP9T5RarsJWt+/Bzb f8VChDb/2QKO0YYBgscp0Cw2KgXy8lofkZseXuPeA0QPqJXH8e8gPerYws/IHJjKTZ FwHRgrzfv7eUQ== Date: Mon, 24 Jul 2023 11:32:49 +0530 From: Manivannan Sadhasivam To: Lars-Peter Clausen Cc: Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Jon Mason , Dave Jiang , Allen Hubbe , linux-pci@vger.kernel.org, mhi@lists.linux.dev, ntb@lists.linux.dev Subject: Re: [PATCH 4/5] PCI: endpoint: pci-epf-vntb: Constify pci_epf_ops Message-ID: <20230724060249.GF2370@thinkpad> References: <20230722230848.589428-1-lars@metafoo.de> <20230722230848.589428-4-lars@metafoo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230722230848.589428-4-lars@metafoo.de> Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Sat, Jul 22, 2023 at 04:08:47PM -0700, Lars-Peter Clausen wrote: > The pci_epf_ops struct for the PCI endpoint vntb driver is never modified. > Mark it as const so it can be placed in the read-only section. > > Signed-off-by: Lars-Peter Clausen Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/pci/endpoint/functions/pci-epf-vntb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/endpoint/functions/pci-epf-vntb.c b/drivers/pci/endpoint/functions/pci-epf-vntb.c > index c8b423c3c26e..ff4b43af4487 100644 > --- a/drivers/pci/endpoint/functions/pci-epf-vntb.c > +++ b/drivers/pci/endpoint/functions/pci-epf-vntb.c > @@ -1387,7 +1387,7 @@ static void epf_ntb_unbind(struct pci_epf *epf) > } > > // EPF driver probe > -static struct pci_epf_ops epf_ntb_ops = { > +static const struct pci_epf_ops epf_ntb_ops = { > .bind = epf_ntb_bind, > .unbind = epf_ntb_unbind, > .add_cfs = epf_ntb_add_cfs, > -- > 2.39.2 > -- மணிவண்ணன் சதாசிவம்