public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [KBUILD] Whitelist references from __dbe_table to .init
@ 2007-07-10  8:16 Ralf Baechle
  2007-07-17  9:17 ` Sam Ravnborg
  0 siblings, 1 reply; 2+ messages in thread
From: Ralf Baechle @ 2007-07-10  8:16 UTC (permalink / raw)
  To: Sam Ravnborg, Andrew Morton, linux-kernel, linux-mips

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: Ralf Baechle <ralf@linux-mips.org>

diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 3645e98..c337246 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1047,6 +1047,7 @@ static int init_section_ref_ok(const char *name)
 		".pdr",
 		"__param",
 		"__ex_table",
+		"__dbe_table",
 		".fixup",
 		".smp_locks",
 		".plt",  /* seen on ARCH=um build on x86_64. Harmless */

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-07-17  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-10  8:16 [KBUILD] Whitelist references from __dbe_table to .init Ralf Baechle
2007-07-17  9:17 ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox