gcc-plugins: Use dynamic initializers
authorKees Cook <keescook@chromium.org>
Tue, 6 Feb 2018 01:27:46 +0000 (17:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:42 +0000 (09:26 +0200)
commit77d1658e5dd111dc01972d57ce1984654cca1131
tree50a8836e215afaa4ab21c9cfd500129176c57668
parent616d41d1b4087a85ec1091f6a7f4460911083f44
gcc-plugins: Use dynamic initializers

commit b86729109c5fd0a480300f40608aac68764b5adf upstream.

GCC 8 changed the order of some fields and is very picky about ordering
in static initializers, so instead just move to dynamic initializers,
and drop the redundant already-zero field assignments.

Suggested-by: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Lance Albertson <lance@osuosl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/gcc-plugins/latent_entropy_plugin.c
scripts/gcc-plugins/randomize_layout_plugin.c
scripts/gcc-plugins/structleak_plugin.c