linux-next: kgdb tree build failure

From: Stephen Rothwell <hidden>
Date: 2009-12-24 00:16:11
Also in: lkml
Subsystem: char and misc drivers, kgdb / kdb /debug_core, the rest · Maintainers: Arnd Bergmann, Greg Kroah-Hartman, Jason Wessel, Daniel Thompson, Linus Torvalds

Hi Jason,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "kgdb_active" [drivers/video/console/fbcon.ko] undefined!
ERROR: "want_console" [drivers/serial/kgdboc.ko] undefined!
ERROR: "last_console" [drivers/serial/kgdboc.ko] undefined!
ERROR: "kgdb_active" [drivers/gpu/drm/drm_kms_helper.ko] undefined!

Caused by various commits from the kgdb tree.

I added this patch for today:

From: Stephen Rothwell <redacted>
Date: Thu, 24 Dec 2009 11:10:41 +1100
Subject: [PATCH] kgdb: export symbols used by modules

Signed-off-by: Stephen Rothwell <redacted>
---
 drivers/char/vt.c         |    2 ++
 kernel/debug/debug_core.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 50faa1f..ef106d8 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -190,7 +190,9 @@ static DECLARE_WORK(console_work, console_callback);
  */
 int fg_console;
 int last_console;
+EXPORT_SYMBOL_GPL(last_console);
 int want_console = -1;
+EXPORT_SYMBOL_GPL(want_console);
 
 /*
  * For each existing display, we have a pointer to console currently visible
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index 14d7c4e..c58924f 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -106,6 +106,7 @@ static struct kgdb_bkpt		kgdb_break[KGDB_MAX_BREAKPOINTS] = {
  * The CPU# of the active CPU, or -1 if none:
  */
 atomic_t			kgdb_active = ATOMIC_INIT(-1);
+EXPORT_SYMBOL_GPL(kgdb_active);
 
 /*
  * We use NR_CPUs not PERCPU, in case kgdb is used to debug early
-- 
1.6.5.4


-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help