mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
1f8bb966c3
commit
1c2d1c579f
2 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue