Thread (3 messages) flat view 3 messages, 2 authors, 2015-08-14

Re: GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8))

From: Johannes Berg <johannes@sipsolutions.net>
Date: 2015-08-14 09:05:52
Also in: linux-wireless, lkml

On Fri, 2015-08-14 at 11:00 +0200, Michal Kubecek wrote:
quoted
but should I have expected this?
It might have something to do with the fact that is_power_of_2() 
being an inline function, perhaps with this compiler option it 
translates to something that can't be used in the context 
BUILD_BUG_ON() uses it in.
Evidently, yeah.
There is a BUILD_BUG_ON_NOT_POWER_OF_2() macro you could use.
Good point, I'll do that, thanks.

johannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help