]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/pseries: Make pseries_get_iov_fw_value() & pnv_iov_get() pci_dev const
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 29 Apr 2026 12:26:12 +0000 (15:26 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Jun 2026 17:08:51 +0000 (12:08 -0500)
Convert input pci_dev for pseries_get_iov_fw_value() and pnv_iov_get() to
const to be able to convert pcibios_iov_resource_alignment() as well in an
upcoming change.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20260429122617.7324-7-ilpo.jarvinen@linux.intel.com
arch/powerpc/platforms/powernv/pci.h
arch/powerpc/platforms/pseries/setup.c

index 42075501663b7cf540298a5503e541c194131375..032b2081aedb0ad9e6aa5cc15d012742f1b7af76 100644 (file)
@@ -251,7 +251,7 @@ struct pnv_iov_data {
        struct resource holes[PCI_SRIOV_NUM_BARS];
 };
 
-static inline struct pnv_iov_data *pnv_iov_get(struct pci_dev *pdev)
+static inline struct pnv_iov_data *pnv_iov_get(const struct pci_dev *pdev)
 {
        return pdev->dev.archdata.iov_data;
 }
index 50b26ed8432d554f5b2939464d07cbf0cb9df143..b670c6fdfcea940913d03068ea0a6a005f6d6ea4 100644 (file)
@@ -658,7 +658,8 @@ enum get_iov_fw_value_index {
        WDW_SIZE      = 3     /*  Get Window Size */
 };
 
-static resource_size_t pseries_get_iov_fw_value(struct pci_dev *dev, int resno,
+static resource_size_t pseries_get_iov_fw_value(const struct pci_dev *dev,
+                                               int resno,
                                                enum get_iov_fw_value_index value)
 {
        const int *indexes;