]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dynamic_debug: fix undefined reference to `__netdev_printk'
authorJason Baron <jbaron@redhat.com>
Wed, 28 Sep 2011 00:50:37 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:41:31 +0000 (18:41 +1100)
commit77ac52a84443397fd6271307cdde127250ca9c22
tree8cf22aeafeda88850779d98de925b07c1030dd7d
parentea5ced85578b21e15dbe493ccd951d6173334f17
dynamic_debug: fix undefined reference to `__netdev_printk'

Dynamic debug recently added support for netdev_printk.  It uses
__netdev_printk() to support this functionality.  However, when CONFIG_NET
is not set, we get the following error:

lib/built-in.o: In function `__dynamic_netdev_dbg':
(.text+0x9fda): undefined reference to `__netdev_printk'

Fix this by making the call to netdev_printk() contingent upon CONFIG_NET.
 We could have fixed this by defining netdev_printk() to a 'no-op' in the
!CONFIG_NET case.  However, this is not consistent with how the networking
layer uses netdev_printk.  For example, CONFIG_NET is not set,
netdev_printk() does not have a 'no-op' definition defined.

Signed-off-by: Jason Baron <jbaron@redhat.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: Greg KH <greg@kroah.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <>
lib/dynamic_debug.c