[PATCH v6 5/7] treewide: use get_random_u32() when possible

Heiko Carstens hca at linux.ibm.com
Tue Oct 11 21:00:18 AEDT 2022


On Mon, Oct 10, 2022 at 05:06:11PM -0600, Jason A. Donenfeld wrote:
> The prandom_u32() function has been a deprecated inline wrapper around
> get_random_u32() for several releases now, and compiles down to the
> exact same code. Replace the deprecated wrapper with a direct call to
> the real function. The same also applies to get_random_int(), which is
> just a wrapper around get_random_u32(). This was done as a basic find
> and replace.
> 
> Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> Reviewed-by: Kees Cook <keescook at chromium.org>
> Reviewed-by: Yury Norov <yury.norov at gmail.com>
> Acked-by: Toke Høiland-Jørgensen <toke at toke.dk> # for sch_cake
> Acked-by: Chuck Lever <chuck.lever at oracle.com> # for nfsd
> Reviewed-by: Jan Kara <jack at suse.cz> # for ext4
> Acked-by: Mika Westerberg <mika.westerberg at linux.intel.com> # for thunderbolt
> Acked-by: Darrick J. Wong <djwong at kernel.org> # for xfs
> Signed-off-by: Jason A. Donenfeld <Jason at zx2c4.com>
> ---
>  arch/s390/mm/mmap.c                            |  2 +-

For s390:
Acked-by: Heiko Carstens <hca at linux.ibm.com>


More information about the Linuxppc-dev mailing list