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.
This commit is contained in:
Cedric Van den Bergh
2026-07-08 15:04:35 +01:00
parent cf055c237a
commit d0f8c75edd

View File

@ -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;