Commit f3ffaaa8 authored by Jiang Liu's avatar Jiang Liu Committed by Tony Luck

[IA64] sba_iommu: fix section mismatch

To: linux-kernel@vger.kernel.org

Fix the section mismatch warning by remove __init annotate for functions
ioc_iova_init(), ioc_init() and acpi_sba_ioc_add() because they may be called at runtime.

WARNING: vmlinux.o(.data+0x66ee0): Section mismatch in reference from the variable acpi_sba_ioc_handler to the function .init.text:acpi_sba_ioc_add()
The variable acpi_sba_ioc_handler references
the function __init acpi_sba_ioc_add()
Signed-off-by: default avatarJiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent cfbf8d48
...@@ -1596,7 +1596,7 @@ static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist, ...@@ -1596,7 +1596,7 @@ static void sba_unmap_sg_attrs(struct device *dev, struct scatterlist *sglist,
* *
***************************************************************/ ***************************************************************/
static void __init static void
ioc_iova_init(struct ioc *ioc) ioc_iova_init(struct ioc *ioc)
{ {
int tcnfg; int tcnfg;
...@@ -1807,7 +1807,7 @@ static struct ioc_iommu ioc_iommu_info[] __initdata = { ...@@ -1807,7 +1807,7 @@ static struct ioc_iommu ioc_iommu_info[] __initdata = {
{ SX2000_IOC_ID, "sx2000", NULL }, { SX2000_IOC_ID, "sx2000", NULL },
}; };
static struct ioc * __init static struct ioc *
ioc_init(unsigned long hpa, void *handle) ioc_init(unsigned long hpa, void *handle)
{ {
struct ioc *ioc; struct ioc *ioc;
...@@ -2041,7 +2041,7 @@ sba_map_ioc_to_node(struct ioc *ioc, acpi_handle handle) ...@@ -2041,7 +2041,7 @@ sba_map_ioc_to_node(struct ioc *ioc, acpi_handle handle)
#define sba_map_ioc_to_node(ioc, handle) #define sba_map_ioc_to_node(ioc, handle)
#endif #endif
static int __init static int
acpi_sba_ioc_add(struct acpi_device *device, acpi_sba_ioc_add(struct acpi_device *device,
const struct acpi_device_id *not_used) const struct acpi_device_id *not_used)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment