]> www.infradead.org Git - users/jedix/linux-maple.git/commit
crypto: jitterentropy - avoid compiler warnings
authorStephan Mueller <smueller@chronox.de>
Tue, 23 Jun 2015 14:18:54 +0000 (16:18 +0200)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Wed, 13 Sep 2017 21:21:35 +0000 (14:21 -0700)
commit9cbd32f3a1fbee8d3dd528f287de097e0496ba0f
tree793bf5f86d24e48bf6935f2077553641511b3f58
parentd0e98a7e5d0c2571aa8c00a295a606e25ddc8983
crypto: jitterentropy - avoid compiler warnings

Orabug: 26330509

The core of the Jitter RNG is intended to be compiled with -O0. To
ensure that the Jitter RNG can be compiled on all architectures,
separate out the RNG core into a stand-alone C file that can be compiled
with -O0 which does not depend on any kernel include file.

As no kernel includes can be used in the C file implementing the core
RNG, any dependencies on kernel code must be extracted.

A second file provides the link to the kernel and the kernel crypto API
that can be compiled with the regular compile options of the kernel.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit dfc9fa91938bd0cd5597a3da33d613986149a1e6)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
crypto/Makefile
crypto/jitterentropy-kcapi.c [new file with mode: 0644]
crypto/jitterentropy.c