Re: [RFC] x86/pci: Mark pci_root_ops as const

2018-11-08 Thread Bjorn Helgaas
Hi Zubin, On Thu, Nov 08, 2018 at 09:11:15AM -0800, Zubin Mithra wrote: > pci_root_ops is only written to from within intel_mid_pci_init. This > is linked in only when CONFIG_X86_INTEL_MID is set. If not for this, > pci_root_ops could be marked as const. > > Fix this by replacing pci_root_ops usa

[RFC] x86/pci: Mark pci_root_ops as const

2018-11-08 Thread Zubin Mithra
pci_root_ops is only written to from within intel_mid_pci_init. This is linked in only when CONFIG_X86_INTEL_MID is set. If not for this, pci_root_ops could be marked as const. Fix this by replacing pci_root_ops usage with pci_root_ops_ptr. If CONFIG_X86_INTEL_MID is set, pci_root_ops_ptr will be