[PATCH -mm v2] 2.6.23-rc4-mm1: kgdboe link errors

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Matt Mackall <mpm@...>
Cc: Jiri Slaby <jirislaby@...>, <kgdb-bugreport@...>, <amitkale@...>, Linux kernel mailing list <linux-kernel@...>, <jason.wessel@...>, Andrew Morton <akpm@...>
Date: Wednesday, September 12, 2007 - 2:22 pm

On Wed, 12 Sep 2007 13:15:12 -0500 Matt Mackall wrote:


Correct.  Patch corrected.  Thanks.

---
From: Randy Dunlap <randy.dunlap@oracle.com>

Fix kgdb build problems:
  Building modules, stage 2.
ERROR: "netpoll_cleanup" [drivers/net/kgdboe.ko] undefined!
ERROR: "netpoll_setup" [drivers/net/kgdboe.ko] undefined!
ERROR: "netpoll_parse_options" [drivers/net/kgdboe.ko] undefined!
ERROR: "netpoll_poll" [drivers/net/kgdboe.ko] undefined!
ERROR: "netpoll_send_udp" [drivers/net/kgdboe.ko] undefined!
ERROR: "netpoll_set_trap" [drivers/net/kgdboe.ko] undefined!
make[1]: *** [__modpost] Error 1


Add 'select' for net-poll related config symbols, but
make KGDBOE 'depend on' NET.  We don't want to 'select' CONFIG_NET,
but if it is already enabled, the 'select's will enable the rest
of the needed interfaces.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 lib/Kconfig.kgdb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux-2.6.23-rc4-mm1.orig/lib/Kconfig.kgdb
+++ linux-2.6.23-rc4-mm1/lib/Kconfig.kgdb
@@ -174,9 +174,10 @@ endchoice
 
 config KGDBOE
 	tristate "KGDB: On ethernet" if !KGDBOE_NOMODULE
-	depends on m && KGDB
+	depends on m && KGDB && NET
 	select NETPOLL
 	select NETPOLL_TRAP
+	select NET_POLL_CONTROLLER
 	help
 	  Uses the NETPOLL API to communicate with the host GDB via UDP.
 	  In order for this to work, the ethernet interface specified must
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.23-rc4-mm1: kgdboe link errors, Jiri Slaby, (Wed Sep 12, 5:31 am)
[PATCH -mm] 2.6.23-rc4-mm1: kgdboe link errors, Randy Dunlap, (Wed Sep 12, 1:15 pm)
Re: [PATCH -mm] 2.6.23-rc4-mm1: kgdboe link errors, Matt Mackall, (Wed Sep 12, 2:15 pm)
[PATCH -mm v2] 2.6.23-rc4-mm1: kgdboe link errors, Randy Dunlap, (Wed Sep 12, 2:22 pm)
Re: [PATCH -mm v2] 2.6.23-rc4-mm1: kgdboe link errors, Matt Mackall, (Wed Sep 12, 2:50 pm)