[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AE90C24D6B3A694183C094C60CF0A2F6D8AF33@saturn3.aculab.com>
Date: Thu, 5 Jan 2012 14:14:30 -0000
From: "David Laight" <David.Laight@...LAB.COM>
To: "Kalle Valo" <kvalo@....qualcomm.com>, <linville@...driver.com>
Cc: <sfr@...b.auug.org.au>, <netdev@...r.kernel.org>,
<linux-wireless@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-next@...r.kernel.org>, <ath6kl-devel@...lcomm.com>,
<davem@...emloft.net>
Subject: RE: [PATCH v2 4/6] ath6kl: get rid of AR_DBG_LVL_CHECK()
> We don't need it as debug calls already have a log level and compiler
> should be smart enough to optimise away the code when ath6kl
> debug code is not enabled.
Have you checked?
I think you are assuming that because the called
function collapses, the call will be removed allowing
the loop to be removed.
I suspect this is only true if the function is inlined.
IIRC the normal linkage rules mean that only static
functions are candidates for inlining.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists