]> git.ipfire.org Git - thirdparty/linux.git/commit
PCI: Make pci_sriov_resource_alignment() pci_dev const
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 29 Apr 2026 12:26:13 +0000 (15:26 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Jun 2026 17:08:51 +0000 (12:08 -0500)
commit79a648209dadcc0f2ff0f27100fd79d1c890ccf8
treeccd2c2879dbfa6f91c85e54031880c232e303f6c
parent9f331c50b31fd03c7b9e36cc5790e81675a054f9
PCI: Make pci_sriov_resource_alignment() pci_dev const

pci_sriov_resource_alignment() inputs struct pci_dev which it should not
need to alter to calculate alignment.

Make pci_dev pci_sriov_resource_alignment() inputs const. It requires
making pci_iov_resource_size() input const as well.

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-8-ilpo.jarvinen@linux.intel.com
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/pci-common.c
arch/powerpc/platforms/powernv/pci-sriov.c
arch/powerpc/platforms/powernv/pci.h
arch/powerpc/platforms/pseries/setup.c
drivers/pci/iov.c
drivers/pci/pci.h
include/linux/pci.h