Re: [PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Jisheng Zhang
On Thu, 12 Nov 2015 13:21:02 +0100 Arnd Bergmann wrote: > On Thursday 12 November 2015 20:02:08 Jisheng Zhang wrote: > > Following compilation warning occurs when compiled with: > > CONFIG_DEBUG_SECTION_MISMATCH=y > > > > WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in >

Re: [PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Arnd Bergmann
On Thursday 12 November 2015 20:02:08 Jisheng Zhang wrote: > Following compilation warning occurs when compiled with: > CONFIG_DEBUG_SECTION_MISMATCH=y > > WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in > reference from the variable hisi_pcie_driver to the function > .in

[PATCH] PCI: hisi: Fix Section mismatch compilation warning for probe()

2015-11-12 Thread Jisheng Zhang
Following compilation warning occurs when compiled with: CONFIG_DEBUG_SECTION_MISMATCH=y WARNING: drivers/pci/host/built-in.o(.data+0x308): Section mismatch in reference from the variable hisi_pcie_driver to the function .init.text:hisi_pcie_probe() Fix it by dropping __init from hisi_pcie_pro