mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
009cbadb6e
commit
31f3dff6c5
1 changed files with 2 additions and 2 deletions
|
@ -1006,7 +1006,7 @@ static void __init calgary_set_split_completion_timeout(void __iomem *bbar,
|
||||||
readq(target); /* flush */
|
readq(target); /* flush */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
|
static void __init calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
unsigned char busnum = dev->bus->number;
|
unsigned char busnum = dev->bus->number;
|
||||||
void __iomem *bbar = tbl->bbar;
|
void __iomem *bbar = tbl->bbar;
|
||||||
|
@ -1022,7 +1022,7 @@ static void calioc2_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
|
||||||
writel(cpu_to_be32(val), target);
|
writel(cpu_to_be32(val), target);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
|
static void __init calgary_handle_quirks(struct iommu_table *tbl, struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
unsigned char busnum = dev->bus->number;
|
unsigned char busnum = dev->bus->number;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue