From adbdded1854757ae992db150d3feaf9c4ffebbf2 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 12 Jan 2026 12:20:15 +1100 Subject: [PATCH] ports: Remove incorrect and unnecessary mp_handle_pending declaration. In c57aebf790c40125b663231ec4307d2a3f3cf193 `mp_handle_pending()` became a static-inline function. So these declarations in `mpconfigport.h` are incorrect and removed by this commit. Signed-off-by: Damien George --- ports/esp32/mpconfigport.h | 2 -- ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h | 1 - ports/mimxrt/mpconfigport.h | 1 - ports/nrf/mpconfigport.h | 1 - ports/samd/mpconfigport.h | 1 - ports/stm32/mpconfigport.h | 2 -- ports/webassembly/mpconfigport.h | 1 - ports/zephyr/mpconfigport.h | 2 -- 8 files changed, 11 deletions(-) diff --git a/ports/esp32/mpconfigport.h b/ports/esp32/mpconfigport.h index 69419ce009..9c22713ac4 100644 --- a/ports/esp32/mpconfigport.h +++ b/ports/esp32/mpconfigport.h @@ -309,7 +309,6 @@ void *esp_native_code_commit(void *, size_t, void *); #if MICROPY_PY_THREAD #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ MICROPY_PY_SOCKET_EVENTS_HANDLER \ MP_THREAD_GIL_EXIT(); \ @@ -324,7 +323,6 @@ void *esp_native_code_commit(void *, size_t, void *); #endif #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ MICROPY_PY_SOCKET_EVENTS_HANDLER \ MICROPY_PY_WAIT_FOR_INTERRUPT; \ diff --git a/ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h b/ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h index 1154aac830..028282c182 100644 --- a/ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h +++ b/ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h @@ -5,7 +5,6 @@ #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ } while (0); diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h index 871713e1cb..6159b1a342 100644 --- a/ports/mimxrt/mpconfigport.h +++ b/ports/mimxrt/mpconfigport.h @@ -224,7 +224,6 @@ extern const struct _mp_obj_type_t network_lan_type; #ifndef MICROPY_EVENT_POLL_HOOK #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ __WFE(); \ } while (0); diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h index bb517c19c5..c1c5035b0f 100644 --- a/ports/nrf/mpconfigport.h +++ b/ports/nrf/mpconfigport.h @@ -379,7 +379,6 @@ long unsigned int rng_generate_random_word(void); #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ __WFI(); \ } while (0); diff --git a/ports/samd/mpconfigport.h b/ports/samd/mpconfigport.h index 131861d2bd..bdc5df52db 100644 --- a/ports/samd/mpconfigport.h +++ b/ports/samd/mpconfigport.h @@ -170,7 +170,6 @@ #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ __WFE(); \ } while (0); diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 0ca4e35e84..68c0a1e145 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -234,7 +234,6 @@ typedef long mp_off_t; #if MICROPY_PY_THREAD #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ if (pyb_thread_enabled) { \ MP_THREAD_GIL_EXIT(); \ @@ -249,7 +248,6 @@ typedef long mp_off_t; #else #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ __WFI(); \ } while (0); diff --git a/ports/webassembly/mpconfigport.h b/ports/webassembly/mpconfigport.h index 11b23a3ba4..16707c64d8 100644 --- a/ports/webassembly/mpconfigport.h +++ b/ports/webassembly/mpconfigport.h @@ -76,7 +76,6 @@ #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ } while (0); diff --git a/ports/zephyr/mpconfigport.h b/ports/zephyr/mpconfigport.h index 56a442c269..a899ee2eff 100644 --- a/ports/zephyr/mpconfigport.h +++ b/ports/zephyr/mpconfigport.h @@ -168,7 +168,6 @@ typedef long mp_off_t; #if MICROPY_PY_THREAD #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ MP_THREAD_GIL_EXIT(); \ k_msleep(1); \ @@ -177,7 +176,6 @@ typedef long mp_off_t; #else #define MICROPY_EVENT_POLL_HOOK \ do { \ - extern void mp_handle_pending(bool); \ mp_handle_pending(true); \ k_msleep(1); \ } while (0);