powerpc: Mark archrandom.h functions __must_check
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jan 2020 14:54:21 +0000 (14:54 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 25 Jan 2020 17:18:51 +0000 (12:18 -0500)
commit8dae77ac56fec1e085fca3ecea49abda1b4b73d2
tree2630f94c64052a93a771135e9c1e25f248e5fed9
parent98dcfce69729f9ce0fb14f96a39bbdba21429597
powerpc: Mark archrandom.h functions __must_check

We must not use the pointer output without validating the
success of the random read.

Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20200110145422.49141-10-broonie@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
arch/powerpc/include/asm/archrandom.h