Commit eec73e88 authored by Ralf Baechle's avatar Ralf Baechle Committed by Sam Ravnborg

Whitelist references from __dbe_table to .init

This is needed on MIPS where the same mechanism as get_user() is used to
intercept bus error exceptions for some hardware probes.  Without this
patch modpost will throw spurious warnings:

  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  MODPOST vmlinux
WARNING: arch/mips/sgi-ip22/built-in.o(__dbe_table+0x0): Section mismatch: reference to .init.text:
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent a5eb6a50
...@@ -1141,6 +1141,7 @@ static int init_section_ref_ok(const char *name) ...@@ -1141,6 +1141,7 @@ static int init_section_ref_ok(const char *name)
const char **s; const char **s;
/* Absolute section names */ /* Absolute section names */
const char *namelist1[] = { const char *namelist1[] = {
"__dbe_table", /* MIPS generate these */
"__ftr_fixup", /* powerpc cpu feature fixup */ "__ftr_fixup", /* powerpc cpu feature fixup */
"__fw_ftr_fixup", /* powerpc firmware feature fixup */ "__fw_ftr_fixup", /* powerpc firmware feature fixup */
"__param", "__param",
......
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