Skip to content

Commit b4486b3

Browse files
committed
Snapshot
1 parent 5242aec commit b4486b3

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

sw/device/lib/crypto/include/drbg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ crypto_status_t otcrypto_drbg_generate(crypto_uint8_buf_t additional_input,
9494
*
9595
* @return Result of the DRBG uninstantiate operation.
9696
*/
97-
crypto_status_t otcrypto_drbg_uninstantiate();
97+
crypto_status_t otcrypto_drbg_uninstantiate(void);
9898

9999
#ifdef __cplusplus
100100
} // extern "C"

sw/device/lib/dif/dif_rv_core_ibex_unittest.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ TEST_F(ParseCrashDumpTest, DoubleFault) {
609609
.previous_fault_state = {.mtval = 0x15555555, .mpec = 0x25555555},
610610
.double_fault = kDifToggleEnabled,
611611
};
612-
dif_rv_core_ibex_crash_dump_info_t dump = {0};
612+
dif_rv_core_ibex_crash_dump_info_t dump = {{0}};
613613

614614
uint32_t
615615
cpu_info[sizeof(dif_rv_core_ibex_crash_dump_info_t) / sizeof(uint32_t)];
@@ -629,7 +629,7 @@ TEST_F(ParseCrashDumpTest, SingleFault) {
629629
.previous_fault_state = {.mtval = 0x15555555, .mpec = 0x25555555},
630630
.double_fault = kDifToggleDisabled,
631631
};
632-
dif_rv_core_ibex_crash_dump_info_t dump = {0};
632+
dif_rv_core_ibex_crash_dump_info_t dump = {{0}};
633633

634634
uint32_t
635635
cpu_info[sizeof(dif_rv_core_ibex_crash_dump_info_t) / sizeof(uint32_t)];

sw/device/lib/testing/hmac_testutils.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
*
3535
* single HMAC block compression takes 80 cycles.
3636
*/
37-
static inline uint32_t compute_hmac_testutils_fifo_empty_usec() {
37+
static inline uint32_t compute_hmac_testutils_fifo_empty_usec(void) {
3838
uint64_t result = udiv64_slow((80 + 10) * 1000000, kClockFreqCpuHz, NULL) + 1;
3939
CHECK(result <= UINT32_MAX, "timeout must fit in uint32_t");
4040
return (uint32_t)result;
@@ -46,7 +46,7 @@ static inline uint32_t compute_hmac_testutils_fifo_empty_usec() {
4646
* Final hash calculation takes 360 cycles, which consists of one block
4747
* compression and extra HMAC computation.
4848
*/
49-
static inline uint32_t compute_hmac_testutils_finish_timeout_usec() {
49+
static inline uint32_t compute_hmac_testutils_finish_timeout_usec(void) {
5050
uint64_t result =
5151
udiv64_slow((360 + 10) * 1000000, kClockFreqCpuHz, NULL) + 1;
5252
CHECK(result <= UINT32_MAX, "timeout must fit in uint32_t");

sw/device/lib/testing/profile.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern "C" {
2525
*
2626
* @return Ibex cycle count at start time.
2727
*/
28-
uint64_t profile_start();
28+
uint64_t profile_start(void);
2929

3030
/**
3131
* End a cycle-count timing profile.

sw/device/silicon_creator/lib/drivers/kmac_unittest.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class KmacTest : public rom_test::RomTest {
2727
*/
2828
void ExpectPollState(uint32_t flag, bool err) {
2929
// Test assumption: the status flags idle/absorb/squeeze are bits 0..2.
30-
static_assert(KMAC_STATUS_SHA3_IDLE_BIT < 3);
31-
static_assert(KMAC_STATUS_SHA3_ABSORB_BIT < 3);
32-
static_assert(KMAC_STATUS_SHA3_SQUEEZE_BIT < 3);
30+
static_assert(KMAC_STATUS_SHA3_IDLE_BIT < 3, "");
31+
static_assert(KMAC_STATUS_SHA3_ABSORB_BIT < 3, "");
32+
static_assert(KMAC_STATUS_SHA3_SQUEEZE_BIT < 3, "");
3333

3434
// Calculate the status flags that are not this flag.
3535
uint32_t other_status_flag1 = (flag + 1) % 3;

sw/device/tests/sim_dv/pwrmgr_sleep_all_wake_ups_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern dif_sensor_ctrl_t sensor_ctrl;
5656
extern dif_sysrst_ctrl_t sysrst_ctrl;
5757
extern dif_usbdev_t usbdev;
5858

59-
void init_units();
59+
void init_units(void);
6060

6161
void check_wakeup_reason(uint32_t wakeup_source);
6262

0 commit comments

Comments
 (0)