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 <root@stephanos.io>
This commit is contained in:
Stephanos Ioannidis 2022-06-19 01:31:35 +09:00 committed by Carles Cufí
commit 11d27f12ad

View file

@ -415,7 +415,7 @@ static void IRAM_ATTR gpio_esp32_fire_callbacks(const struct device *dev)
} }
} }
static void IRAM_ATTR gpio_esp32_isr(void *param); static void gpio_esp32_isr(void *param);
static int gpio_esp32_init(const struct device *dev) static int gpio_esp32_init(const struct device *dev)
{ {