diff options
author | Jan Beulich <JBeulich@suse.com> | 2011-09-15 03:58:51 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-10-14 12:05:28 -0400 |
commit | 72da0b07b1b497927758a2102b856ce41e4ba81e (patch) | |
tree | ad8e8f895c60fb2dfe0d5922e7c9ca9e8b75e6fe /arch/x86/pci/common.c | |
parent | a94d072b20239f6f615dc20f0a54f63e9b642f9e (diff) |
x86: constify PCI raw ops structures
As with any other such change, the goal is to prevent inadvertent
writes to these structures (assuming DEBUG_RODATA is enabled), and to
separate data (possibly frequently) written to from such never getting
modified.
Reviewed-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/pci/common.c')
-rw-r--r-- | arch/x86/pci/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 92df322e0b57..7962ccb4d9b2 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -33,8 +33,8 @@ int noioapicreroute = 1; | |||
33 | int pcibios_last_bus = -1; | 33 | int pcibios_last_bus = -1; |
34 | unsigned long pirq_table_addr; | 34 | unsigned long pirq_table_addr; |
35 | struct pci_bus *pci_root_bus; | 35 | struct pci_bus *pci_root_bus; |
36 | struct pci_raw_ops *raw_pci_ops; | 36 | const struct pci_raw_ops *__read_mostly raw_pci_ops; |
37 | struct pci_raw_ops *raw_pci_ext_ops; | 37 | const struct pci_raw_ops *__read_mostly raw_pci_ext_ops; |
38 | 38 | ||
39 | int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, | 39 | int raw_pci_read(unsigned int domain, unsigned int bus, unsigned int devfn, |
40 | int reg, int len, u32 *val) | 40 | int reg, int len, u32 *val) |