From: Johannes Berg <johannes@sipsolutions.net>
To: Michal Kubecek <mkubecek@suse.cz>
Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8))
Date: Fri, 14 Aug 2015 11:05:47 +0200 [thread overview]
Message-ID: <1439543147.2091.11.camel@sipsolutions.net> (raw)
In-Reply-To: <20150814090044.GB21759@unicorn.suse.cz>
On Fri, 2015-08-14 at 11:00 +0200, Michal Kubecek wrote:
> > 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
prev parent reply other threads:[~2015-08-14 9:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 9:11 [PATCH 1/2] average: provide macro to create static EWMA Johannes Berg
2015-08-13 9:11 ` [PATCH 2/2] mac80211: use DECLARE_EWMA Johannes Berg
2015-08-13 9:11 ` Johannes Berg
2015-08-14 0:26 ` [PATCH 1/2] average: provide macro to create static EWMA David Miller
2015-08-14 0:26 ` David Miller
2015-08-14 6:44 ` Johannes Berg
2015-08-14 6:44 ` Johannes Berg
2015-08-14 8:29 ` GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8)) Johannes Berg
2015-08-14 9:00 ` Michal Kubecek
2015-08-14 9:05 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439543147.2091.11.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mkubecek@suse.cz \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.