diff options
author | Mathias Krause <minipli@googlemail.com> | 2014-08-25 17:26:36 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-09-24 08:46:01 -0400 |
commit | 64474b5235e83cc5e6002dcdb37145850ad86194 (patch) | |
tree | 3b0e2879a472ed35bfdb76c557f42bc14b3cbb34 /arch/x86/pci | |
parent | 4ac9cbfa35f2c05ed294a2b3e0bf5d0bb7cba607 (diff) |
x86/PCI: Move __init annotation to the correct place
According to include/linux/init.h, the __init annotation should be added
immediately before the function name. However, for quite a few functions
in mmconfig-shared.c this is not the case. It's either before the return
type or even in the middle of it. Beside gcc still getting it right, we
should change them to comply to the rules of include/linux/init.h.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r-- | arch/x86/pci/mmconfig-shared.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c index 248642f4bab7..163ef6bf1678 100644 --- a/arch/x86/pci/mmconfig-shared.c +++ b/arch/x86/pci/mmconfig-shared.c | |||
@@ -31,7 +31,7 @@ static DEFINE_MUTEX(pci_mmcfg_lock); | |||
31 | 31 | ||
32 | LIST_HEAD(pci_mmcfg_list); | 32 | LIST_HEAD(pci_mmcfg_list); |
33 | 33 | ||
34 | static __init void pci_mmconfig_remove(struct pci_mmcfg_region *cfg) | 34 | static void __init pci_mmconfig_remove(struct pci_mmcfg_region *cfg) |
35 | { | 35 | { |
36 | if (cfg->res.parent) | 36 | if (cfg->res.parent) |
37 | release_resource(&cfg->res); | 37 | release_resource(&cfg->res); |
@@ -39,7 +39,7 @@ static __init void pci_mmconfig_remove(struct pci_mmcfg_region *cfg) | |||
39 | kfree(cfg); | 39 | kfree(cfg); |
40 | } | 40 | } |
41 | 41 | ||
42 | static __init void free_all_mmcfg(void) | 42 | static void __init free_all_mmcfg(void) |
43 | { | 43 | { |
44 | struct pci_mmcfg_region *cfg, *tmp; | 44 | struct pci_mmcfg_region *cfg, *tmp; |
45 | 45 | ||
@@ -93,7 +93,7 @@ static struct pci_mmcfg_region *pci_mmconfig_alloc(int segment, int start, | |||
93 | return new; | 93 | return new; |
94 | } | 94 | } |
95 | 95 | ||
96 | static __init struct pci_mmcfg_region *pci_mmconfig_add(int segment, int start, | 96 | static struct pci_mmcfg_region *__init pci_mmconfig_add(int segment, int start, |
97 | int end, u64 addr) | 97 | int end, u64 addr) |
98 | { | 98 | { |
99 | struct pci_mmcfg_region *new; | 99 | struct pci_mmcfg_region *new; |
@@ -125,7 +125,7 @@ struct pci_mmcfg_region *pci_mmconfig_lookup(int segment, int bus) | |||
125 | return NULL; | 125 | return NULL; |
126 | } | 126 | } |
127 | 127 | ||
128 | static const char __init *pci_mmcfg_e7520(void) | 128 | static const char *__init pci_mmcfg_e7520(void) |
129 | { | 129 | { |
130 | u32 win; | 130 | u32 win; |
131 | raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); | 131 | raw_pci_ops->read(0, 0, PCI_DEVFN(0, 0), 0xce, 2, &win); |
@@ -140,7 +140,7 @@ static const char __init *pci_mmcfg_e7520(void) | |||
140 | return "Intel Corporation E7520 Memory Controller Hub"; | 140 | return "Intel Corporation E7520 Memory Controller Hub"; |
141 | } | 141 | } |
142 | 142 | ||
143 | static const char __init *pci_mmcfg_intel_945(void) | 143 | static const char *__init pci_mmcfg_intel_945(void) |
144 | { | 144 | { |
145 | u32 pciexbar, mask = 0, len = 0; | 145 | u32 pciexbar, mask = 0, len = 0; |
146 | 146 | ||
@@ -184,7 +184,7 @@ static const char __init *pci_mmcfg_intel_945(void) | |||
184 | return "Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub"; | 184 | return "Intel Corporation 945G/GZ/P/PL Express Memory Controller Hub"; |
185 | } | 185 | } |
186 | 186 | ||
187 | static const char __init *pci_mmcfg_amd_fam10h(void) | 187 | static const char *__init pci_mmcfg_amd_fam10h(void) |
188 | { | 188 | { |
189 | u32 low, high, address; | 189 | u32 low, high, address; |
190 | u64 base, msr; | 190 | u64 base, msr; |
@@ -235,7 +235,7 @@ static const char __init *pci_mmcfg_amd_fam10h(void) | |||
235 | } | 235 | } |
236 | 236 | ||
237 | static bool __initdata mcp55_checked; | 237 | static bool __initdata mcp55_checked; |
238 | static const char __init *pci_mmcfg_nvidia_mcp55(void) | 238 | static const char *__init pci_mmcfg_nvidia_mcp55(void) |
239 | { | 239 | { |
240 | int bus; | 240 | int bus; |
241 | int mcp55_mmconf_found = 0; | 241 | int mcp55_mmconf_found = 0; |