Fix warnings

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-05-14 19:18:39 +02:00
parent 08507069bd
commit 7f53d7f748
12 changed files with 59 additions and 29 deletions

View File

@@ -71,13 +71,15 @@ static int hwrng_mix_process(void) {
return 0;
}
struct hwrng_buf {
PACK(
typedef struct hwrng_buf {
uint32_t *buf;
uint8_t head, tail;
uint8_t head;
uint8_t tail;
uint8_t size;
unsigned int full : 1;
unsigned int empty : 1;
};
}) hwrng_buf_t;
static mutex_t hwrng_mutex;
static bool hwrng_mutex_initialized = false;