Skip to content

Commit 98dcfce

Browse files
rth7680tytso
authored andcommitted
powerpc: Use bool in archrandom.h
The generic interface uses bool not int; match that. Reviewed-by: Ard Biesheuvel <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 1640a7b commit 98dcfce

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

arch/powerpc/include/asm/archrandom.h

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,28 @@
66

77
#include <asm/machdep.h>
88

9-
static inline int arch_get_random_long(unsigned long *v)
9+
static inline bool arch_get_random_long(unsigned long *v)
1010
{
11-
return 0;
11+
return false;
1212
}
1313

14-
static inline int arch_get_random_int(unsigned int *v)
14+
static inline bool arch_get_random_int(unsigned int *v)
1515
{
16-
return 0;
16+
return false;
1717
}
1818

19-
static inline int arch_get_random_seed_long(unsigned long *v)
19+
static inline bool arch_get_random_seed_long(unsigned long *v)
2020
{
2121
if (ppc_md.get_random_seed)
2222
return ppc_md.get_random_seed(v);
2323

24-
return 0;
24+
return false;
2525
}
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)
2728
{
2829
unsigned long val;
29-
int rc;
30+
bool rc;
3031

3132
rc = arch_get_random_seed_long(&val);
3233
if (rc)

0 commit comments

Comments
 (0)