This is an automated email from the ASF dual-hosted git repository. GUIDINGLI pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e51f0d7dddb2e6d5f330a1af7ba71e98395e3914 Author: yangsong8 <[email protected]> AuthorDate: Tue Nov 10 22:31:02 2026 +0800 nuttx: add the missing headers for bcopy, usleep, geteuid and DEBUGASSERT These files call bcopy(), usleep(), geteuid(), getegid() or DEBUGASSERT() without including strings.h, unistd.h or assert.h, and build only because nuttx/userspace.h pulls them in through pthread.h. Include the headers directly so the files do not depend on that indirect include. Signed-off-by: yangsong8 <[email protected]> --- arch/arm/src/stm32h7/stm32_crypto.c | 2 ++ arch/risc-v/src/common/espressif/esp_crypto.c | 2 ++ arch/risc-v/src/esp32c3-legacy/esp32c3_crypto.c | 2 ++ arch/xtensa/src/common/espressif/esp_crypto.c | 2 ++ arch/xtensa/src/esp32/esp32_crypto.c | 2 ++ boards/arm/stm32h7/linum-stm32h753bi/src/stm32_bringup.c | 1 + drivers/pci/pci_qemu_edu.c | 1 + drivers/rpmsg/rpmsg_test.c | 1 + fs/rpmsgfs/rpmsgfs_client.c | 2 ++ fs/v9fs/client.c | 1 + net/utils/net_bufpool.c | 2 ++ 11 files changed, 18 insertions(+) diff --git a/arch/arm/src/stm32h7/stm32_crypto.c b/arch/arm/src/stm32h7/stm32_crypto.c index 42e087939e5..62b24186aff 100644 --- a/arch/arm/src/stm32h7/stm32_crypto.c +++ b/arch/arm/src/stm32h7/stm32_crypto.c @@ -27,8 +27,10 @@ #include <nuttx/config.h> #include <nuttx/debug.h> #include <sys/param.h> +#include <assert.h> #include <errno.h> #include <stdint.h> +#include <strings.h> #include <crypto/cryptodev.h> #include <crypto/xform.h> diff --git a/arch/risc-v/src/common/espressif/esp_crypto.c b/arch/risc-v/src/common/espressif/esp_crypto.c index a46e4140473..4e27c9ab222 100644 --- a/arch/risc-v/src/common/espressif/esp_crypto.c +++ b/arch/risc-v/src/common/espressif/esp_crypto.c @@ -24,8 +24,10 @@ * Included Files ****************************************************************************/ +#include <assert.h> #include <errno.h> #include <stddef.h> +#include <strings.h> #include <sys/queue.h> #include <crypto/cryptodev.h> diff --git a/arch/risc-v/src/esp32c3-legacy/esp32c3_crypto.c b/arch/risc-v/src/esp32c3-legacy/esp32c3_crypto.c index 418d93d3868..1789fdf329b 100644 --- a/arch/risc-v/src/esp32c3-legacy/esp32c3_crypto.c +++ b/arch/risc-v/src/esp32c3-legacy/esp32c3_crypto.c @@ -24,8 +24,10 @@ * Included Files ****************************************************************************/ +#include <assert.h> #include <errno.h> #include <stddef.h> +#include <strings.h> #include <sys/queue.h> #include <crypto/cryptodev.h> diff --git a/arch/xtensa/src/common/espressif/esp_crypto.c b/arch/xtensa/src/common/espressif/esp_crypto.c index f0e51ac28bf..5a8b50c619a 100644 --- a/arch/xtensa/src/common/espressif/esp_crypto.c +++ b/arch/xtensa/src/common/espressif/esp_crypto.c @@ -24,8 +24,10 @@ * Included Files ****************************************************************************/ +#include <assert.h> #include <errno.h> #include <stddef.h> +#include <strings.h> #include <sys/queue.h> #include <crypto/cryptodev.h> diff --git a/arch/xtensa/src/esp32/esp32_crypto.c b/arch/xtensa/src/esp32/esp32_crypto.c index eb7f62ee931..d9636b34dd7 100644 --- a/arch/xtensa/src/esp32/esp32_crypto.c +++ b/arch/xtensa/src/esp32/esp32_crypto.c @@ -22,8 +22,10 @@ * Included Files ****************************************************************************/ +#include <assert.h> #include <errno.h> #include <stddef.h> +#include <strings.h> #include <sys/queue.h> #include <sys/param.h> #include <endian.h> diff --git a/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_bringup.c b/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_bringup.c index d70f541ec51..aa9beb922e0 100644 --- a/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_bringup.c +++ b/boards/arm/stm32h7/linum-stm32h753bi/src/stm32_bringup.c @@ -29,6 +29,7 @@ #include <sys/types.h> #include <syslog.h> #include <errno.h> +#include <unistd.h> #include <nuttx/fs/fs.h> #include <nuttx/kmalloc.h> diff --git a/drivers/pci/pci_qemu_edu.c b/drivers/pci/pci_qemu_edu.c index e2833d06ae8..1eaaec036bb 100644 --- a/drivers/pci/pci_qemu_edu.c +++ b/drivers/pci/pci_qemu_edu.c @@ -28,6 +28,7 @@ #include <nuttx/debug.h> #include <errno.h> +#include <unistd.h> #include <nuttx/irq.h> #include <nuttx/kmalloc.h> diff --git a/drivers/rpmsg/rpmsg_test.c b/drivers/rpmsg/rpmsg_test.c index f3d18283913..083e8014a22 100644 --- a/drivers/rpmsg/rpmsg_test.c +++ b/drivers/rpmsg/rpmsg_test.c @@ -24,6 +24,7 @@ #include <nuttx/config.h> +#include <assert.h> #include <string.h> #include <syslog.h> #include <time.h> diff --git a/fs/rpmsgfs/rpmsgfs_client.c b/fs/rpmsgfs/rpmsgfs_client.c index c67fffdde21..97425a6c23c 100644 --- a/fs/rpmsgfs/rpmsgfs_client.c +++ b/fs/rpmsgfs/rpmsgfs_client.c @@ -26,11 +26,13 @@ #include <nuttx/config.h> +#include <assert.h> #include <string.h> #include <stdio.h> #include <sys/uio.h> #include <termios.h> #include <fcntl.h> +#include <unistd.h> #include <nuttx/kmalloc.h> #include <nuttx/fs/ioctl.h> diff --git a/fs/v9fs/client.c b/fs/v9fs/client.c index c6e6498e8b1..290c8f1f949 100644 --- a/fs/v9fs/client.c +++ b/fs/v9fs/client.c @@ -26,6 +26,7 @@ #include <sys/param.h> #include <fcntl.h> +#include <unistd.h> #include <nuttx/semaphore.h> #include <nuttx/kmalloc.h> diff --git a/net/utils/net_bufpool.c b/net/utils/net_bufpool.c index 80603bce43c..3631cf47967 100644 --- a/net/utils/net_bufpool.c +++ b/net/utils/net_bufpool.c @@ -26,6 +26,8 @@ #include <nuttx/config.h> +#include <assert.h> + #include <nuttx/kmalloc.h> #include <nuttx/net/net.h> #include <nuttx/semaphore.h>
