mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
fix(linux): fix build errors and warnings, remove ignore file
This commit is contained in:
@@ -102,7 +102,7 @@ esp_err_t esp_partition_file_munmap(void);
|
||||
* @brief Clears statistics gathered by emulated partition read/write/erase operations
|
||||
*
|
||||
*/
|
||||
void esp_partition_clear_stats();
|
||||
void esp_partition_clear_stats(void);
|
||||
|
||||
/**
|
||||
* @brief Returns number of read operations called
|
||||
@@ -112,7 +112,7 @@ void esp_partition_clear_stats();
|
||||
* @return
|
||||
* - number of calls to esp_partition_read since recent esp_partition_clear_stats
|
||||
*/
|
||||
size_t esp_partition_get_read_ops();
|
||||
size_t esp_partition_get_read_ops(void);
|
||||
|
||||
/**
|
||||
* @brief Returns number of write operations called
|
||||
@@ -122,7 +122,7 @@ size_t esp_partition_get_read_ops();
|
||||
* @return
|
||||
* - number of calls to esp_partition_write since recent esp_partition_clear_stats
|
||||
*/
|
||||
size_t esp_partition_get_write_ops();
|
||||
size_t esp_partition_get_write_ops(void);
|
||||
|
||||
/**
|
||||
* @brief Returns number of erase operations performed on behalf of calls to esp_partition_erase_range
|
||||
@@ -132,7 +132,7 @@ size_t esp_partition_get_write_ops();
|
||||
* @return
|
||||
* - total number of emulated sector erase operations on behalf of esp_partition_erase_range since recent esp_partition_clear_stats
|
||||
*/
|
||||
size_t esp_partition_get_erase_ops();
|
||||
size_t esp_partition_get_erase_ops(void);
|
||||
|
||||
/**
|
||||
* @brief Returns total number of bytes read on behalf of esp_partition_read
|
||||
@@ -142,7 +142,7 @@ size_t esp_partition_get_erase_ops();
|
||||
* @return
|
||||
* - total number of bytes read on behalf of esp_partition_read since recent esp_partition_clear_stats
|
||||
*/
|
||||
size_t esp_partition_get_read_bytes();
|
||||
size_t esp_partition_get_read_bytes(void);
|
||||
|
||||
/**
|
||||
* @brief Returns total number of bytes written on behalf of esp_partition_write
|
||||
@@ -152,7 +152,7 @@ size_t esp_partition_get_read_bytes();
|
||||
* @return
|
||||
* - total number of bytes written on behalf of esp_partition_write since recent esp_partition_clear_stats
|
||||
*/
|
||||
size_t esp_partition_get_write_bytes();
|
||||
size_t esp_partition_get_write_bytes(void);
|
||||
|
||||
/**
|
||||
* @brief Returns estimated total time spent on partition operations.
|
||||
@@ -163,7 +163,7 @@ size_t esp_partition_get_write_bytes();
|
||||
* @return
|
||||
* - estimated total time spent in read/write/erase operations in miliseconds
|
||||
*/
|
||||
size_t esp_partition_get_total_time();
|
||||
size_t esp_partition_get_total_time(void);
|
||||
|
||||
/**
|
||||
* @brief Initializes emulation of failure caused by wear on behalf of write/erase operations
|
||||
|
@@ -176,7 +176,7 @@ esp_err_t esp_partition_file_mmap(const uint8_t **part_desc_addr_start)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
esp_err_t esp_partition_file_munmap()
|
||||
esp_err_t esp_partition_file_munmap(void)
|
||||
{
|
||||
if (s_spiflash_mem_file_buf == NULL) {
|
||||
return ESP_ERR_NO_MEM;
|
||||
@@ -445,7 +445,7 @@ static bool esp_partition_hook_erase(const void *dstAddr, const size_t size)
|
||||
return true;
|
||||
}
|
||||
|
||||
void esp_partition_clear_stats()
|
||||
void esp_partition_clear_stats(void)
|
||||
{
|
||||
s_esp_partition_stat_read_bytes = 0;
|
||||
s_esp_partition_stat_write_bytes = 0;
|
||||
@@ -457,32 +457,32 @@ void esp_partition_clear_stats()
|
||||
memset(s_esp_partition_stat_sector_erase_count, 0, sizeof(s_esp_partition_stat_sector_erase_count));
|
||||
}
|
||||
|
||||
size_t esp_partition_get_read_ops()
|
||||
size_t esp_partition_get_read_ops(void)
|
||||
{
|
||||
return s_esp_partition_stat_read_ops;
|
||||
}
|
||||
|
||||
size_t esp_partition_get_write_ops()
|
||||
size_t esp_partition_get_write_ops(void)
|
||||
{
|
||||
return s_esp_partition_stat_write_ops;
|
||||
}
|
||||
|
||||
size_t esp_partition_get_erase_ops()
|
||||
size_t esp_partition_get_erase_ops(void)
|
||||
{
|
||||
return s_esp_partition_stat_erase_ops;
|
||||
}
|
||||
|
||||
size_t esp_partition_get_read_bytes()
|
||||
size_t esp_partition_get_read_bytes(void)
|
||||
{
|
||||
return s_esp_partition_stat_read_bytes;
|
||||
}
|
||||
|
||||
size_t esp_partition_get_write_bytes()
|
||||
size_t esp_partition_get_write_bytes(void)
|
||||
{
|
||||
return s_esp_partition_stat_write_bytes;
|
||||
}
|
||||
|
||||
size_t esp_partition_get_total_time()
|
||||
size_t esp_partition_get_total_time(void)
|
||||
{
|
||||
return s_esp_partition_stat_total_time;
|
||||
}
|
||||
|
Reference in New Issue
Block a user