[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080218.164305.67586867.davem@davemloft.net>
Date: Mon, 18 Feb 2008 16:43:05 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: kaber@...sh.net
Cc: joe@...ches.com, bruno@...nktube.com, netdev@...r.kernel.org,
jgarzik@...ox.com, linux-wireless@...r.kernel.org,
linville@...driver.com
Subject: Re: [PATCH] net/8021q/vlan_dev.c - Use print_mac
From: Patrick McHardy <kaber@...sh.net>
Date: Mon, 18 Feb 2008 22:17:27 +0100
> The way pr_debug is implemented it still results in two function
> calls per packet since the compiler doesn't know that it doesn't
> have visible side-effects besides modifying the (unused) buffer.
> I confirmed this using codiff.
That's a bug.
I think we can fix this easily by using __attribute_const_
on the print_mac() declaration. Let me play with that.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists