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


The following commit(s) were added to refs/heads/master by this push:
     new 1c2d1c579f0 simwifi: Fix compilation warning
1c2d1c579f0 is described below

commit 1c2d1c579f0d96a171db2f83db5eba21e16bd802
Author: zhangshuai39 <[email protected]>
AuthorDate: Wed Jun 25 20:15:07 2025 +0800

    simwifi: Fix compilation warning
    
    Added the `<nuttx/kmalloc.h>` header file and fixed the implicit conversion 
issue.
    
    Signed-off-by: zhangshuai39 <[email protected]>
---
 arch/sim/src/sim/sim_netdriver.c | 2 +-
 arch/sim/src/sim/sim_wifihost.c  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/sim/src/sim/sim_netdriver.c b/arch/sim/src/sim/sim_netdriver.c
index 535b4e3c86d..e8808d9c11d 100644
--- a/arch/sim/src/sim/sim_netdriver.c
+++ b/arch/sim/src/sim/sim_netdriver.c
@@ -271,7 +271,7 @@ static void netdriver_rxready_interrupt(void *priv)
 static void sim_netdev_work(void *arg)
 {
   struct sim_netdev_s *priv = (struct sim_netdev_s *)arg;
-  struct netdev_lowerhalf_s *dev = &priv->dev;
+  struct netdev_lowerhalf_s *dev = (struct netdev_lowerhalf_s *)&priv->dev;
 
   if (sim_netdev_avail(DEVIDX(dev)))
     {
diff --git a/arch/sim/src/sim/sim_wifihost.c b/arch/sim/src/sim/sim_wifihost.c
index 5d45177167e..d319232fdaa 100644
--- a/arch/sim/src/sim/sim_wifihost.c
+++ b/arch/sim/src/sim/sim_wifihost.c
@@ -32,6 +32,7 @@
 #include <netpacket/netlink.h>
 #include <nuttx/net/netlink.h>
 #include <sys/time.h>
+#include <nuttx/kmalloc.h>
 
 #include "sim_internal.h"
 #include "sim_wifihost.h"

Reply via email to