]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dynamic_debug: fix undefined reference to `__netdev_printk'
authorJason Baron <jbaron@redhat.com>
Wed, 5 Oct 2011 00:43:26 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 06:06:51 +0000 (17:06 +1100)
commited29cc39d1fb1178c5aa0b3643811985bfbb808d
tree40bf73bda57a859f7b709d8ae015d443e3d10ac5
parent438f8826b59e80db3e7fd0c2ae19e2de5b4dda69
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 <akpm@google.com>
lib/dynamic_debug.c