This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 82a0e6e0d4eac28faa6466ad7f5217e3be1ef644 Author: Saravanan Sekar <[email protected]> AuthorDate: Wed Oct 21 13:00:57 2026 +0530 include/nuttx/net/rpmsgdrv.h: include netdev_lowerhalf.h only when used drivers_initialize.c includes rpmsgdrv.h unconditionally, which pulls netdev_lowerhalf.h and its prototype with enum net_lltype_e even when CONFIG_NET is off and net.h defines no such enum. GCC accepts the incomplete enum type, TASKING ctc rejects it. Everything in rpmsgdrv.h that needs the header is under CONFIG_NET_RPMSG_DRV already. Signed-off-by: Saravanan Sekar <[email protected]> --- include/nuttx/net/rpmsgdrv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/nuttx/net/rpmsgdrv.h b/include/nuttx/net/rpmsgdrv.h index ff36c04e21f..adf25996fb5 100644 --- a/include/nuttx/net/rpmsgdrv.h +++ b/include/nuttx/net/rpmsgdrv.h @@ -28,7 +28,10 @@ ****************************************************************************/ #include <nuttx/config.h> -#include <nuttx/net/netdev_lowerhalf.h> + +#ifdef CONFIG_NET_RPMSG_DRV +# include <nuttx/net/netdev_lowerhalf.h> +#endif /**************************************************************************** * Pre-processor Definitions
