Skip to content

Commit 11d27f1

Browse files
stephanosiocarlescufi
authored andcommitted
drivers: gpio_esp32: 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 e54224d commit 11d27f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_esp32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ static void IRAM_ATTR gpio_esp32_fire_callbacks(const struct device *dev)
415415
}
416416
}
417417

418-
static void IRAM_ATTR gpio_esp32_isr(void *param);
418+
static void gpio_esp32_isr(void *param);
419419

420420
static int gpio_esp32_init(const struct device *dev)
421421
{

0 commit comments

Comments
 (0)