Re: [PATCH] latent_entropy: avoid build error when plugin cflags are not set

2019-05-08 Thread Martin Schwidefsky
On Tue, 7 May 2019 09:16:29 -0700 Kees Cook wrote: > On Tue, May 7, 2019 at 7:28 AM Vasily Gorbik wrote: > > Some architectures set up CFLAGS for linux decompressor phase from > > scratch and do not include GCC_PLUGINS_CFLAGS. Since "latent_entropy" > > variable declaration is generated by the

Re: [PATCH] latent_entropy: avoid build error when plugin cflags are not set

2019-05-07 Thread Kees Cook
On Tue, May 7, 2019 at 7:28 AM Vasily Gorbik wrote: > Some architectures set up CFLAGS for linux decompressor phase from > scratch and do not include GCC_PLUGINS_CFLAGS. Since "latent_entropy" > variable declaration is generated by the plugin code itself including > linux/random.h in decompressor

[PATCH] latent_entropy: avoid build error when plugin cflags are not set

2019-05-07 Thread Vasily Gorbik
Some architectures set up CFLAGS for linux decompressor phase from scratch and do not include GCC_PLUGINS_CFLAGS. Since "latent_entropy" variable declaration is generated by the plugin code itself including linux/random.h in decompressor code then would cause a build error. E.g. on s390: In file