This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 44c01c24d0247489f9043230c5eebe274eb45024 Author: yangsong8 <[email protected]> AuthorDate: Wed Nov 18 11:45:48 2026 +0800 drivers/usbdev/cdcacm: include nuttx/mutex.h cdcacm.c uses mutex_t and nxmutex_lock() for g_init_lock but did not include <nuttx/mutex.h> and only built because another header pulls it in indirectly. Include it directly. Assisted-by: Kiro:claude-opus-5-5 Signed-off-by: yangsong8 <[email protected]> --- drivers/usbdev/cdcacm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c index 770a3e0d536..92f457fa3e9 100644 --- a/drivers/usbdev/cdcacm.c +++ b/drivers/usbdev/cdcacm.c @@ -40,6 +40,7 @@ #include <nuttx/debug.h> #include <nuttx/irq.h> #include <nuttx/kmalloc.h> +#include <nuttx/mutex.h> #include <nuttx/queue.h> #include <nuttx/wdog.h> #include <nuttx/arch.h>
