aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-calgary_64.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-02-01 11:49:42 -0500
committerIngo Molnar <mingo@elte.hu>2008-02-01 11:49:42 -0500
commit31f3dff6c536e33f97c8f5049e1dd0a392933265 (patch)
treefaf3d2b4264ff87a94ed2e03fbc4b5385fdb8cb6 /arch/x86/kernel/pci-calgary_64.c
parent009cbadb6e9364e0b006ef6531953c0eced1db4d (diff)
x86: fix section mismatch warning in kernel/pci-calgary
Fix following warning: WARNING: arch/x86/kernel/built-in.o(.text+0x1eb41): Section mismatch in reference from the function calgary_handle_quirks() to the function .init.text:calgary_set_split_completion_timeout() calgary_handle_quirks() are only called at __init time (in calgary_init_one() via handle_quirks ops). So annotate this function and the sister function __init. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/pci-calgary_64.c')
-rw-r--r--arch/x86/kernel/pci-calgary_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c
index 21f34db2c03c..1fe7f043ebde 100644
--- a/arch/x86/kernel/pci-calgary_64.c
+++ b/arch/x86/kernel/pci-calgary_64.c
@@ -1006,7 +1006,7 @@ static void __init calgary_set_split_completion_timeout(void __iomem *bbar,
1006 readq(target); /* flush */ 1006 readq(target); /* flush */
1007} 1007}
1008 1008
1009static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev) 1009static void __init calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
1010{ 1010{
1011 unsigned char busnum = dev->bus->number; 1011 unsigned char busnum = dev->bus->number;
1012 void __iomem *bbar = tbl->bbar; 1012 void __iomem *bbar = tbl->bbar;
@@ -1022,7 +1022,7 @@ static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
1022 writel(cpu_to_be32(val), target); 1022 writel(cpu_to_be32(val), target);
1023} 1023}
1024 1024
1025static void calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev) 1025static void __init calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
1026{ 1026{
1027 unsigned char busnum = dev->bus->number; 1027 unsigned char busnum = dev->bus->number;
1028 1028