@@ -65,6 +65,9 @@ static rt_err_t uart_control(struct rt_serial_device *serial, int cmd, void *arg
UART_IMSC(uart->hw_base) |= UARTIMSC_RXIM;
rt_hw_interrupt_umask(uart->irqno);
break;
+
+ default:
+ return -1;
}
return RT_EOK;
@@ -1066,6 +1066,11 @@ int dfs_file_fcntl(int fd, int cmd, unsigned long arg)
case F_SETLK:
case F_SETLKW:
+#ifdef RT_USING_MUSLLIBC
+ case F_DUPFD_CLOEXEC:
+ ret = -EINVAL;
+ break;
+#endif
default:
ret = -EPERM;