summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@penguin.transmeta.com>2002-11-04 22:40:11 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-11-04 22:40:11 -0800
commitadd026ec81498b766c258ce11a4fdeabe2fde1bc (patch)
tree7758f6bc7bb7fec800aa1b7fa975a3abbae8b06c /include/net
parent9d1f716f28baa266d47030d527407605499a4f96 (diff)
Avoid gcc warning, and clean up current text address
handling (it's "current_text_addr()", not the home-brew gcc label magic)
Diffstat (limited to 'include/net')
-rw-r--r--include/net/dst.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index c25cdac635ed..1fbb39584b97 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -11,6 +11,7 @@
#include <linux/config.h>
#include <linux/rtnetlink.h>
#include <net/neighbour.h>
+#include <asm/processor.h>
/*
* 0 - no debugging messages
@@ -141,10 +142,9 @@ void dst_release(struct dst_entry * dst)
{
if (dst) {
if (atomic_read(&dst->__refcnt) < 1) {
- __label__ __lbl;
printk("BUG: dst underflow %d: %p\n",
- atomic_read(&dst->__refcnt), &&__lbl);
-__lbl:
+ atomic_read(&dst->__refcnt),
+ current_text_addr());
}
atomic_dec(&dst->__refcnt);
}