浏览代码

[IA64] Fix - Section mismatch: reference to .init.data:mvec_name

machvec_init() should be __init.  And then so should hwsw_init().

Signed-off-by: Tony Luck <tony.luck@intel.com>
Tony Luck 18 年之前
父节点
当前提交
9a86bbb90f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      arch/ia64/hp/common/hwsw_iommu.c
  2. 1 1
      arch/ia64/kernel/machvec.c

+ 1 - 1
arch/ia64/hp/common/hwsw_iommu.c

@@ -63,7 +63,7 @@ use_swiotlb (struct device *dev)
 	return dev && dev->dma_mask && !hwiommu_dma_supported(dev, *dev->dma_mask);
 }
 
-void
+void __init
 hwsw_init (void)
 {
 	/* default to a smallish 2MB sw I/O TLB */

+ 1 - 1
arch/ia64/kernel/machvec.c

@@ -35,7 +35,7 @@ lookup_machvec (const char *name)
 	return 0;
 }
 
-void
+void __init
 machvec_init (const char *name)
 {
 	struct ia64_machine_vector *mv;