simwifi: Fix compilation warning

Added the `<nuttx/kmalloc.h>` header file and fixed the implicit conversion issue.

Signed-off-by: zhangshuai39 <zhangshuai39@xiaomi.com>
This commit is contained in:
zhangshuai39 2025-06-25 20:15:07 +08:00 committed by Alan C. Assis
parent 1f8bb966c3
commit 1c2d1c579f
2 changed files with 2 additions and 1 deletions

View file

@ -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)))
{

View file

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