Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1222767
| From | Johannes Berg <johannes@sipsolutions.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: static key arrays? |
| Date | 2015-09-11 14:20 +0200 |
| Message-ID | <q7vt8-1gv-7@gated-at.bofh.it> (permalink) |
| References | <q7t7Y-6eG-13@gated-at.bofh.it> <q7ux4-8mN-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, 2015-09-11 at 13:10 +0200, Peter Zijlstra wrote:
>
> struct static_key_false array[n] = { STATIC_KEY_FALSE_INIT, };
>
> or something like that.
Yeah, ok, this would be sufficient for me - no need to mix different
types. I don't think that initializer works, but I guess we can just
duplicate it in the code - unless we can rely on zero-initialization
being sufficient.
My mistake was assuming that the only API was the macros, but of if we
just use the new struct names (struct static_key_false) without the
macros then there isn't really an issue.
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 | Next in thread | Find similar | Unroll thread
static key arrays? Johannes Berg <johannes@sipsolutions.net> - 2015-09-11 11:50 +0200
Re: static key arrays? Peter Zijlstra <peterz@infradead.org> - 2015-09-11 13:20 +0200
Re: static key arrays? Johannes Berg <johannes@sipsolutions.net> - 2015-09-11 14:20 +0200
Re: static key arrays? Rasmus Villemoes <linux@rasmusvillemoes.dk> - 2015-09-11 16:50 +0200
Re: static key arrays? Johannes Berg <johannes@sipsolutions.net> - 2015-09-11 17:00 +0200
Re: static key arrays? "Baron, Jason" <jbaron@akamai.com> - 2015-09-11 13:30 +0200
csiph-web