mirror of
https://github.com/apache/nuttx.git
synced 2026-09-24 00:42:03 +08:00
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:
committed by
Alan C. Assis
parent
1f8bb966c3
commit
1c2d1c579f
@@ -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)))
|
||||
{
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user