tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
This commit is contained in:
@@ -130,7 +130,7 @@ void esp_efuse_init(uint32_t offset, uint32_t size)
|
||||
esp_efuse_flash_size = size;
|
||||
}
|
||||
|
||||
static uint32_t emulate_secure_version_read()
|
||||
static uint32_t emulate_secure_version_read(void)
|
||||
{
|
||||
uint32_t secure_version;
|
||||
uint32_t offset = esp_efuse_flash_offset;
|
||||
@@ -170,7 +170,7 @@ static void emulate_secure_version_write(uint32_t secure_version)
|
||||
#define EFUSE_BLK_RD_ANTI_ROLLBACK EFUSE_BLK3_RDATA4_REG
|
||||
#define EFUSE_BLK_WR_ANTI_ROLLBACK EFUSE_BLK3_WDATA4_REG
|
||||
|
||||
uint32_t esp_efuse_read_secure_version()
|
||||
uint32_t esp_efuse_read_secure_version(void)
|
||||
{
|
||||
#ifdef CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK
|
||||
uint32_t secure_version;
|
||||
|
||||
@@ -34,7 +34,7 @@ static const char *TAG = "efuse";
|
||||
static uint32_t virt_blocks[COUNT_EFUSE_BLOCKS][COUNT_EFUSE_REG_PER_BLOCK];
|
||||
|
||||
/* Call the update function to seed virtual efuses during initialization */
|
||||
__attribute__((constructor)) void esp_efuse_utility_update_virt_blocks();
|
||||
__attribute__((constructor)) void esp_efuse_utility_update_virt_blocks(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -222,7 +222,7 @@ void esp_efuse_utility_burn_efuses(void)
|
||||
|
||||
|
||||
// Erase the virt_blocks array.
|
||||
void esp_efuse_utility_erase_virt_blocks()
|
||||
void esp_efuse_utility_erase_virt_blocks(void)
|
||||
{
|
||||
#ifdef CONFIG_EFUSE_VIRTUAL
|
||||
memset(virt_blocks, 0, sizeof(virt_blocks));
|
||||
@@ -230,7 +230,7 @@ void esp_efuse_utility_erase_virt_blocks()
|
||||
}
|
||||
|
||||
// Fills the virt_blocks array by values from efuse_Rdata.
|
||||
void esp_efuse_utility_update_virt_blocks()
|
||||
void esp_efuse_utility_update_virt_blocks(void)
|
||||
{
|
||||
#ifdef CONFIG_EFUSE_VIRTUAL
|
||||
ESP_LOGI(TAG, "Loading virtual efuse blocks from real efuses");
|
||||
@@ -247,7 +247,7 @@ void esp_efuse_utility_update_virt_blocks()
|
||||
}
|
||||
|
||||
// Prints efuse values for all registers.
|
||||
void esp_efuse_utility_debug_dump_blocks()
|
||||
void esp_efuse_utility_debug_dump_blocks(void)
|
||||
{
|
||||
printf("EFUSE_BLKx:\n");
|
||||
#ifdef CONFIG_EFUSE_VIRTUAL
|
||||
@@ -454,7 +454,7 @@ static void read_r_data(esp_efuse_block_t num_block, uint32_t* buf_r_data)
|
||||
|
||||
// After esp_efuse_write.. functions EFUSE_BLKx_WDATAx_REG were filled is not coded values.
|
||||
// This function reads EFUSE_BLKx_WDATAx_REG registers, applies coding scheme and writes encoded values back to EFUSE_BLKx_WDATAx_REG.
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme()
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme(void)
|
||||
{
|
||||
uint8_t buf_w_data[COUNT_EFUSE_REG_PER_BLOCK * 4];
|
||||
uint8_t buf_r_data[COUNT_EFUSE_REG_PER_BLOCK * 4];
|
||||
|
||||
@@ -112,17 +112,17 @@ void esp_efuse_utility_reset(void);
|
||||
/**
|
||||
* @brief Fills the virt_blocks array by values from efuse_Rdata.
|
||||
*/
|
||||
void esp_efuse_utility_update_virt_blocks();
|
||||
void esp_efuse_utility_update_virt_blocks(void);
|
||||
|
||||
/**
|
||||
* @brief Prints efuse values for all registers.
|
||||
*/
|
||||
void esp_efuse_utility_debug_dump_blocks();
|
||||
void esp_efuse_utility_debug_dump_blocks(void);
|
||||
|
||||
/**
|
||||
* @brief Erase the virt_blocks array.
|
||||
*/
|
||||
void esp_efuse_utility_erase_virt_blocks();
|
||||
void esp_efuse_utility_erase_virt_blocks(void);
|
||||
|
||||
/**
|
||||
* @brief Apply coding_scheme to write registers.
|
||||
@@ -131,7 +131,7 @@ void esp_efuse_utility_erase_virt_blocks();
|
||||
* - ESP_OK: The operation was successfully completed.
|
||||
* - ESP_ERR_CODING: Error range of data does not match the coding scheme.
|
||||
*/
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme();
|
||||
esp_err_t esp_efuse_utility_apply_new_coding_scheme(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user