mm/net/sched: fix warnings

Change-Id: I92db0e2cb7ff9e63eef8086a7cc084f67045d69c
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2021-03-03 19:18:47 +08:00
parent 15fc1cb23f
commit 49389e2695
3 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -25,7 +25,9 @@
#include <nuttx/config.h>
#include <assert.h>
#include <sched.h>
#include <nuttx/arch.h>
#include <nuttx/mm/mm.h>
#include <nuttx/irq.h>
@@ -79,7 +81,7 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap)
#if CONFIG_MM_REGIONS > 1
continue;
#else
return 0;
return;
#endif
}
+4
View File
@@ -1152,11 +1152,15 @@ static void tcp_process_cache(FAR struct net_driver_s *dev, uint8_t domain,
if (IFF_IS_IPv4(dev->d_flags))
{
#ifdef CONFIG_NET_IPv4
tcp_ipv4_select(dev);
#endif
}
else
{
#ifdef CONFIG_NET_IPv6
tcp_ipv6_select(dev);
#endif
}
tcp_input(dev, domain, iplen, NULL);
+1
View File
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#include <sched.h>