mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 18:11:04 +02:00
esp_hw_support: fix gcc-12 compile errors
This commit is contained in:
@@ -198,7 +198,6 @@ void sleep_retention_entries_show_memories(void)
|
|||||||
void * sleep_retention_find_link_by_id(int id)
|
void * sleep_retention_find_link_by_id(int id)
|
||||||
{
|
{
|
||||||
void *link = NULL;
|
void *link = NULL;
|
||||||
if (&s_retention.lock) {
|
|
||||||
_lock_acquire_recursive(&s_retention.lock);
|
_lock_acquire_recursive(&s_retention.lock);
|
||||||
if (s_retention.highpri >= SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY &&
|
if (s_retention.highpri >= SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY &&
|
||||||
s_retention.highpri <= SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
|
s_retention.highpri <= SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
|
||||||
@@ -207,7 +206,6 @@ void * sleep_retention_find_link_by_id(int id)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
_lock_release_recursive(&s_retention.lock);
|
_lock_release_recursive(&s_retention.lock);
|
||||||
}
|
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -331,7 +329,6 @@ static void sleep_retention_entries_all_destroy_wrapper(uint32_t module)
|
|||||||
void sleep_retention_entries_destroy(int module)
|
void sleep_retention_entries_destroy(int module)
|
||||||
{
|
{
|
||||||
assert(module != 0);
|
assert(module != 0);
|
||||||
if (&s_retention.lock) {
|
|
||||||
_lock_acquire_recursive(&s_retention.lock);
|
_lock_acquire_recursive(&s_retention.lock);
|
||||||
sleep_retention_entries_join();
|
sleep_retention_entries_join();
|
||||||
sleep_retention_entries_stats();
|
sleep_retention_entries_stats();
|
||||||
@@ -348,7 +345,6 @@ void sleep_retention_entries_destroy(int module)
|
|||||||
}
|
}
|
||||||
_lock_acquire_recursive(&s_retention.lock);
|
_lock_acquire_recursive(&s_retention.lock);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
static esp_err_t sleep_retention_entries_create_impl(const sleep_retention_entries_config_t retent[], int num, regdma_link_priority_t priority, int module)
|
static esp_err_t sleep_retention_entries_create_impl(const sleep_retention_entries_config_t retent[], int num, regdma_link_priority_t priority, int module)
|
||||||
{
|
{
|
||||||
@@ -447,7 +443,6 @@ error:
|
|||||||
void sleep_retention_entries_get(sleep_retention_entries_t *entries)
|
void sleep_retention_entries_get(sleep_retention_entries_t *entries)
|
||||||
{
|
{
|
||||||
memset(entries, 0, sizeof(sleep_retention_entries_t));
|
memset(entries, 0, sizeof(sleep_retention_entries_t));
|
||||||
if (&s_retention.lock) {
|
|
||||||
_lock_acquire_recursive(&s_retention.lock);
|
_lock_acquire_recursive(&s_retention.lock);
|
||||||
if (s_retention.highpri >= SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY &&
|
if (s_retention.highpri >= SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY &&
|
||||||
s_retention.highpri <= SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
|
s_retention.highpri <= SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
|
||||||
@@ -455,7 +450,6 @@ void sleep_retention_entries_get(sleep_retention_entries_t *entries)
|
|||||||
}
|
}
|
||||||
_lock_release_recursive(&s_retention.lock);
|
_lock_release_recursive(&s_retention.lock);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
uint32_t IRAM_ATTR sleep_retention_get_modules(void)
|
uint32_t IRAM_ATTR sleep_retention_get_modules(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user