[Top] [All Lists]

[KBUILD] Whitelist references from __dbe_table to .init

To: Sam Ravnborg <>, Andrew Morton <>,,
Subject: [KBUILD] Whitelist references from __dbe_table to .init
From: Ralf Baechle <>
Date: Tue, 10 Jul 2007 09:16:32 +0100
Original-recipient: rfc822;
User-agent: Mutt/1.5.14 (2007-02-12)
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
  MODPOST vmlinux
WARNING: arch/mips/sgi-ip22/built-in.o(__dbe_table+0x0): Section mismatch: 
reference to .init.text:

Signed-off-by: Ralf Baechle <>

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)
+               "__dbe_table",
                ".plt",  /* seen on ARCH=um build on x86_64. Harmless */

<Prev in Thread] Current Thread [Next in Thread>