mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[ARM] kirkwood: fix section mismatch
kirkwood_timer_init() and kirkwood_pcie_setup() lack of __init which causes following warnings: WARNING: vmlinux.o(.text+0x9568): Section mismatch in reference from the function kirkwood_timer_init() to the function .init.text:kirkwood_find_tclk() The function kirkwood_timer_init() references the function __init kirkwood_find_tclk(). This is often because kirkwood_timer_init lacks a __init annotation or the annotation of kirkwood_find_tclk is wrong. WARNING: vmlinux.o(.text+0x979c): Section mismatch in reference from the function kirkwood_pcie_setup() to the function .init.text:orion_pcie_setup() The function kirkwood_pcie_setup() references the function __init orion_pcie_setup(). This is often because kirkwood_pcie_setup lacks a __init annotation or the annotation of orion_pcie_setup is wrong. Signed-off-by: lijie <eltshanli@gmail.com> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
This commit is contained in:
parent
5d89655573
commit
6de95c1987
2 changed files with 2 additions and 2 deletions
|
@ -845,7 +845,7 @@ int __init kirkwood_find_tclk(void)
|
||||||
return 166666667;
|
return 166666667;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void kirkwood_timer_init(void)
|
static void __init kirkwood_timer_init(void)
|
||||||
{
|
{
|
||||||
kirkwood_tclk = kirkwood_find_tclk();
|
kirkwood_tclk = kirkwood_find_tclk();
|
||||||
orion_time_init(IRQ_KIRKWOOD_BRIDGE, kirkwood_tclk);
|
orion_time_init(IRQ_KIRKWOOD_BRIDGE, kirkwood_tclk);
|
||||||
|
|
|
@ -93,7 +93,7 @@ static struct pci_ops pcie_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static int kirkwood_pcie_setup(int nr, struct pci_sys_data *sys)
|
static int __init kirkwood_pcie_setup(int nr, struct pci_sys_data *sys)
|
||||||
{
|
{
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
extern unsigned int kirkwood_clk_ctrl;
|
extern unsigned int kirkwood_clk_ctrl;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue