浏览代码

kbuild: ignore smp_locks section warnings from init/exit code

Add ".smp_locks" section to whitelist as being safe from
init and exit sections.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Randy Dunlap 19 年之前
父节点
当前提交
35899c5751
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/mod/modpost.c

+ 2 - 0
scripts/mod/modpost.c

@@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name)
 		".pci_fixup_final",
 		".pci_fixup_final",
 		".pdr",
 		".pdr",
 		"__param",
 		"__param",
+		".smp_locks",
 		NULL
 		NULL
 	};
 	};
 	/* Start of section names */
 	/* Start of section names */
@@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name)
 		".exitcall.exit",
 		".exitcall.exit",
 		".eh_frame",
 		".eh_frame",
 		".stab",
 		".stab",
+		".smp_locks",
 		NULL
 		NULL
 	};
 	};
 	/* Start of section names */
 	/* Start of section names */