diff options
| author | Cedric Van den Bergh <[email protected]> | 2026-07-08 15:04:35 +0100 |
|---|---|---|
| committer | Cedric Van den Bergh <[email protected]> | 2026-08-07 07:42:32 +0100 |
| commit | d0f8c75edd3f6f05792976dbdbb0bc21f4d8ed39 (patch) | |
| tree | 2ca260d473a2be23c22bb43aa1ee067939b4c742 | |
| parent | cf055c237a93d3308e1670285dfd2b629f0dd8af (diff) | |
test/fuzz: stub usbd_defer_func in net_ncm harness
The self-contained net_ncm fuzz harness #includes ncm_device.c and stubs
the usbd symbols it references rather than linking the device stack.
tud_network_link_state() now calls usbd_defer_func(), so add a matching
no-op stub to keep the harness linking.
| -rw-r--r-- | test/fuzz/device/net_ncm/fuzz.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fuzz/device/net_ncm/fuzz.c b/test/fuzz/device/net_ncm/fuzz.c index a93c144f7..3052636d8 100644 --- a/test/fuzz/device/net_ncm/fuzz.c +++ b/test/fuzz/device/net_ncm/fuzz.c @@ -47,6 +47,9 @@ bool usbd_open_edpt_pair(uint8_t rhport, uint8_t const *p_desc, uint8_t ep_count (void) rhport; (void) p_desc; (void) ep_count; (void) xfer_type; (void) ep_out; (void) ep_in; return true; } +void usbd_defer_func(osal_task_func_t func, void *param, bool in_isr) { + (void) func; (void) param; (void) in_isr; +} bool tud_control_xfer(uint8_t rhport, tusb_control_request_t const *request, void *buffer, uint16_t len) { (void) rhport; (void) request; (void) buffer; (void) len; return true; |
