Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Use bool in archrandom.h

The generic interface uses bool not int; match that.

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-9-broonie@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>

authored by

Richard Henderson and committed by
Theodore Ts'o
98dcfce6 1640a7b9

+9 -8
+9 -8
arch/powerpc/include/asm/archrandom.h
··· 6 6 7 7 #include <asm/machdep.h> 8 8 9 - static inline int arch_get_random_long(unsigned long *v) 9 + static inline bool arch_get_random_long(unsigned long *v) 10 10 { 11 - return 0; 11 + return false; 12 12 } 13 13 14 - static inline int arch_get_random_int(unsigned int *v) 14 + static inline bool arch_get_random_int(unsigned int *v) 15 15 { 16 - return 0; 16 + return false; 17 17 } 18 18 19 - static inline int arch_get_random_seed_long(unsigned long *v) 19 + static inline bool arch_get_random_seed_long(unsigned long *v) 20 20 { 21 21 if (ppc_md.get_random_seed) 22 22 return ppc_md.get_random_seed(v); 23 23 24 - return 0; 24 + return false; 25 25 } 26 - static inline int arch_get_random_seed_int(unsigned int *v) 26 + 27 + static inline bool arch_get_random_seed_int(unsigned int *v) 27 28 { 28 29 unsigned long val; 29 - int rc; 30 + bool rc; 30 31 31 32 rc = arch_get_random_seed_long(&val); 32 33 if (rc)