Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1207430
| From | Johannes Berg <johannes@sipsolutions.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8)) |
| Date | 2015-08-14 11:10 +0200 |
| Message-ID | <pXj9U-618-15@gated-at.bofh.it> (permalink) |
| References | <pXixc-52G-3@gated-at.bofh.it> <pXixc-52G-1@gated-at.bofh.it> <pXj9U-618-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8)) Johannes Berg <johannes@sipsolutions.net> - 2015-08-14 10:30 +0200
Re: GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8)) Michal Kubecek <mkubecek@suse.cz> - 2015-08-14 11:10 +0200
Re: GCOV_PROFILE_ALL breaks BUILD_BUG_ON(!is_power_of_2(8)) Johannes Berg <johannes@sipsolutions.net> - 2015-08-14 11:10 +0200
csiph-web