diff --git a/arch/arm/src/lc823450/chip.h b/arch/arm/src/lc823450/chip.h index 2b0021b510..d981ed55ca 100644 --- a/arch/arm/src/lc823450/chip.h +++ b/arch/arm/src/lc823450/chip.h @@ -45,6 +45,7 @@ # include # include # include +# include "up_arch.h" # include "lc823450_irq.h" #endif diff --git a/arch/arm/src/lc823450/lc823450_irq.c b/arch/arm/src/lc823450/lc823450_irq.c index 3b16bcc064..bb5f455820 100644 --- a/arch/arm/src/lc823450/lc823450_irq.c +++ b/arch/arm/src/lc823450/lc823450_irq.c @@ -108,11 +108,11 @@ uint64_t g_instack_alloc[INTSTACK_ALLOC >> 3]; /* These definitions provide the "top" of the push-down stacks. */ const uint32_t g_cpu0_instack_base = - (uint32_t)g_instack_alloc + INTSTACK_SIZE) + (uint32_t)g_instack_alloc + INTSTACK_SIZE); #if CONFIG_SMP_NCPUS > 1 const uint32_t g_cpu1_instack_base = - (uint32_t)g_instack_alloc + 2 * INTSTACK_SIZE) + (uint32_t)g_instack_alloc + 2 * INTSTACK_SIZE); #endif #endif diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 3a0070bd3c..54a92713e5 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -309,7 +309,6 @@ # else # define __SYS_termios __SYS_ifindex # endif -# endif # ifdef CONFIG_SERIAL_TERMIOS # define SYS_tcdrain __SYS_termios # define __SYS_boardctl (__SYS_termios + 1) diff --git a/net/pkt/pkt_sockif.c b/net/pkt/pkt_sockif.c index bec3a892f6..f6406ad431 100644 --- a/net/pkt/pkt_sockif.c +++ b/net/pkt/pkt_sockif.c @@ -377,7 +377,7 @@ static int pkt_bind(FAR struct socket *psock, FAR const struct sockaddr *addr, /* Only Ethernet is supported */ - if (d_lltype != NET_LL_ETHERNET) + if (dev->d_lltype != NET_LL_ETHERNET) { return -EAFNOSUPPORT; } diff --git a/syscall/syscall.csv b/syscall/syscall.csv index 47ca079e42..3631edb8aa 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -35,8 +35,8 @@ "getpid","unistd.h","","pid_t" "getrandom","sys/random.h","defined(CONFIG_CRYPTO_RANDOM_POOL)","void","FAR void*","size_t" "getsockopt","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int","int","FAR void*","FAR socklen_t*" -"if_indextoname","net/if.h","CONFIG_NETDEV_IFINDEX","FAR char *","unsigned int","FAR char *" -"if_nametoindex","net/if.h","CONFIG_NETDEV_IFINDEX","unsigned int","FAR const char *" +"if_indextoname","net/if.h","defined(CONFIG_NETDEV_IFINDEX)","FAR char *","unsigned int","FAR char *" +"if_nametoindex","net/if.h","defined(CONFIG_NETDEV_IFINDEX)","unsigned int","FAR const char *" "insmod","nuttx/module.h","defined(CONFIG_MODULE)","FAR void *","FAR const char *","FAR const char *" "ioctl","sys/ioctl.h","!defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","int","int","unsigned long" "kill","signal.h","!defined(CONFIG_DISABLE_SIGNALS)","int","pid_t","int"