Commit add026ec authored by Linus Torvalds's avatar Linus Torvalds

Avoid gcc warning, and clean up current text address

handling (it's "current_text_addr()", not the home-brew
gcc label magic)
parent 9d1f716f
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/rtnetlink.h> #include <linux/rtnetlink.h>
#include <net/neighbour.h> #include <net/neighbour.h>
#include <asm/processor.h>
/* /*
* 0 - no debugging messages * 0 - no debugging messages
...@@ -141,10 +142,9 @@ void dst_release(struct dst_entry * dst) ...@@ -141,10 +142,9 @@ void dst_release(struct dst_entry * dst)
{ {
if (dst) { if (dst) {
if (atomic_read(&dst->__refcnt) < 1) { if (atomic_read(&dst->__refcnt) < 1) {
__label__ __lbl;
printk("BUG: dst underflow %d: %p\n", printk("BUG: dst underflow %d: %p\n",
atomic_read(&dst->__refcnt), &&__lbl); atomic_read(&dst->__refcnt),
__lbl: current_text_addr());
} }
atomic_dec(&dst->__refcnt); atomic_dec(&dst->__refcnt);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment