Skip to content

Commit adbdded

Browse files
committed
ports: Remove incorrect and unnecessary mp_handle_pending declaration.
In c57aebf `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 <damien@micropython.org>
1 parent 570744d commit adbdded

8 files changed

Lines changed: 0 additions & 11 deletions

File tree

ports/esp32/mpconfigport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ void *esp_native_code_commit(void *, size_t, void *);
309309
#if MICROPY_PY_THREAD
310310
#define MICROPY_EVENT_POLL_HOOK \
311311
do { \
312-
extern void mp_handle_pending(bool); \
313312
mp_handle_pending(true); \
314313
MICROPY_PY_SOCKET_EVENTS_HANDLER \
315314
MP_THREAD_GIL_EXIT(); \
@@ -324,7 +323,6 @@ void *esp_native_code_commit(void *, size_t, void *);
324323
#endif
325324
#define MICROPY_EVENT_POLL_HOOK \
326325
do { \
327-
extern void mp_handle_pending(bool); \
328326
mp_handle_pending(true); \
329327
MICROPY_PY_SOCKET_EVENTS_HANDLER \
330328
MICROPY_PY_WAIT_FOR_INTERRUPT; \

ports/mimxrt/boards/MIMXRT1170_EVK/mpconfigboard.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
#define MICROPY_EVENT_POLL_HOOK \
77
do { \
8-
extern void mp_handle_pending(bool); \
98
mp_handle_pending(true); \
109
} while (0);
1110

ports/mimxrt/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ extern const struct _mp_obj_type_t network_lan_type;
224224
#ifndef MICROPY_EVENT_POLL_HOOK
225225
#define MICROPY_EVENT_POLL_HOOK \
226226
do { \
227-
extern void mp_handle_pending(bool); \
228227
mp_handle_pending(true); \
229228
__WFE(); \
230229
} while (0);

ports/nrf/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,6 @@ long unsigned int rng_generate_random_word(void);
379379

380380
#define MICROPY_EVENT_POLL_HOOK \
381381
do { \
382-
extern void mp_handle_pending(bool); \
383382
mp_handle_pending(true); \
384383
__WFI(); \
385384
} while (0);

ports/samd/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170

171171
#define MICROPY_EVENT_POLL_HOOK \
172172
do { \
173-
extern void mp_handle_pending(bool); \
174173
mp_handle_pending(true); \
175174
__WFE(); \
176175
} while (0);

ports/stm32/mpconfigport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ typedef long mp_off_t;
234234
#if MICROPY_PY_THREAD
235235
#define MICROPY_EVENT_POLL_HOOK \
236236
do { \
237-
extern void mp_handle_pending(bool); \
238237
mp_handle_pending(true); \
239238
if (pyb_thread_enabled) { \
240239
MP_THREAD_GIL_EXIT(); \
@@ -249,7 +248,6 @@ typedef long mp_off_t;
249248
#else
250249
#define MICROPY_EVENT_POLL_HOOK \
251250
do { \
252-
extern void mp_handle_pending(bool); \
253251
mp_handle_pending(true); \
254252
__WFI(); \
255253
} while (0);

ports/webassembly/mpconfigport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676

7777
#define MICROPY_EVENT_POLL_HOOK \
7878
do { \
79-
extern void mp_handle_pending(bool); \
8079
mp_handle_pending(true); \
8180
} while (0);
8281

ports/zephyr/mpconfigport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ typedef long mp_off_t;
168168
#if MICROPY_PY_THREAD
169169
#define MICROPY_EVENT_POLL_HOOK \
170170
do { \
171-
extern void mp_handle_pending(bool); \
172171
mp_handle_pending(true); \
173172
MP_THREAD_GIL_EXIT(); \
174173
k_msleep(1); \
@@ -177,7 +176,6 @@ typedef long mp_off_t;
177176
#else
178177
#define MICROPY_EVENT_POLL_HOOK \
179178
do { \
180-
extern void mp_handle_pending(bool); \
181179
mp_handle_pending(true); \
182180
k_msleep(1); \
183181
} while (0);

0 commit comments

Comments
 (0)