commit | c834f0e8a8bb3025aac38e802fca2e686720f544 | [log] [tgz] |
---|---|---|
author | Kees Cook <keescook@chromium.org> | Mon Mar 20 17:14:11 2017 -0700 |
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | Wed Mar 22 02:50:25 2017 +0900 |
tree | c53de99eef392f795629261ecbcc4c5b7b27c99b | |
parent | f78271dfb77353c4d045f9735deebe21839fb2ed [diff] |
Kbuild: make designated_init attribute fatal If a structure is marked with __attribute__((designated_init)) from GCC or Sparse, it needs to have all static initializers using designated initialization. Fail the build for any missing cases. This attribute will be used by the randstruct plugin to make sure randomized structures are being correctly initialized. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>