compiler: Add __designated_init annotation
authorKees Cook <keescook@chromium.org>
Wed, 5 Apr 2017 16:49:19 +0000 (09:49 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 28 May 2017 17:23:03 +0000 (10:23 -0700)
commit0aa5e49c6845ecd82531341085f367767c9f419a
treedd7b9d4a2bad900e26a42810304ae571df61183a
parent1132e1e448ce51e3b51fc7afdf661633abc4f202
compiler: Add __designated_init annotation

This allows structure annotations for requiring designated initialization
in GCC 5.1.0 and later:
https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html

The structure randomization layout plugin will be using this to help
identify structures that need this form of initialization.

Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/compiler-gcc.h
include/linux/compiler.h