hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/powerpc/include/asm/archrandom.h
....@@ -6,43 +6,34 @@
66
77 #include <asm/machdep.h>
88
9
-static inline int arch_get_random_long(unsigned long *v)
9
+static inline bool __must_check 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 __must_check 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 __must_check 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 __must_check 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)
3334 *v = val;
3435
3536 return rc;
36
-}
37
-
38
-static inline int arch_has_random(void)
39
-{
40
- return 0;
41
-}
42
-
43
-static inline int arch_has_random_seed(void)
44
-{
45
- return !!ppc_md.get_random_seed;
4637 }
4738 #endif /* CONFIG_ARCH_RANDOM */
4839