Skip to content

Commit c40949a

Browse files
stephanosiocarlescufi
authored andcommitted
soc: esp32s2: Drop IRAM_ATTR from forward declarations
This commit drops the `IRAM_ATTR` macro from the function declarations because: 1. `IRAM_ATTR` macro makes use of the `__COUNTER__` preprocessor macro, which increments for every macro invocation and causes the section specified in the forward declaration to not match that of the function definition. 2. Section attributes need not be specified for forward declarations. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 11d27f1 commit c40949a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soc/xtensa/esp32s2/soc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern uint8_t g_rom_spiflash_dummy_len_plus[];
6868
extern uint32_t esp_rom_g_ticks_per_us_pro;
6969

7070
/* cache initialization functions */
71-
void IRAM_ATTR esp_config_instruction_cache_mode(void);
72-
void IRAM_ATTR esp_config_data_cache_mode(void);
71+
void esp_config_instruction_cache_mode(void);
72+
void esp_config_data_cache_mode(void);
7373

7474
#endif /* __SOC_H__ */

0 commit comments

Comments
 (0)