mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
[rng] Allow entropy_enable() to return an error
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -61,8 +61,9 @@ typedef uint8_t entropy_sample_t;
|
||||
/**
|
||||
* Enable entropy gathering
|
||||
*
|
||||
* @ret rc Return status code
|
||||
*/
|
||||
void entropy_enable ( void );
|
||||
int entropy_enable ( void );
|
||||
|
||||
/**
|
||||
* Disable entropy gathering
|
||||
|
||||
@@ -19,9 +19,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
#define ENTROPY_PREFIX_null __null_
|
||||
#endif
|
||||
|
||||
static inline __always_inline void
|
||||
static inline __always_inline int
|
||||
ENTROPY_INLINE ( null, entropy_enable ) ( void ) {
|
||||
/* Do nothing */
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline __always_inline void
|
||||
|
||||
Reference in New Issue
Block a user