From: Sonic Zhang <sonic.zh...@analog.com>

If we try to enable KGDBOE but NET_POLL_CONTROLLER is disabled, we hit:
net/core/netpoll.c: In function 'netpoll_poll':
net/core/netpoll.c:184: error: 'const struct net_device_ops' has no member 
named 'ndo_poll_controller'
net/core/netpoll.c:188: error: 'const struct net_device_ops' has no member 
named 'ndo_poll_controller'
net/core/netpoll.c: In function 'netpoll_setup':
net/core/netpoll.c:707: error: 'const struct net_device_ops' has no member 
named 'ndo_poll_controller'
make[2]: *** [net/core/netpoll.o] Error 1

Signed-off-by: Sonic Zhang <sonic.zh...@analog.com>
Signed-off-by: Mike Frysinger <vap...@gentoo.org>
---
 lib/Kconfig.kgdb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/Kconfig.kgdb b/lib/Kconfig.kgdb
index fe5010b..1d9909e 100644
--- a/lib/Kconfig.kgdb
+++ b/lib/Kconfig.kgdb
@@ -32,6 +32,7 @@ config KGDBOE
        depends on KGDB
        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
-- 
1.7.1


------------------------------------------------------------------------------

_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to