From dc72e16625480caf7aef29e589265c64de79a35c Mon Sep 17 00:00:00 2001 From: Heath Petersen Date: Tue, 12 Jul 2016 06:50:58 +0000 Subject: [PATCH] handle when CONFIG_SERIAL_UART_ARCH_IOCTL is not enabled --- drivers/serial/uart_16550.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index 022adf3abe..b55597bdf1 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -871,14 +871,17 @@ static int u16550_ioctl(struct file *filep, int cmd, unsigned long arg) struct inode *inode = filep->f_inode; struct uart_dev_s *dev = inode->i_private; struct u16550_s *priv = (FAR struct u16550_s *)dev->priv; + int ret; #ifdef CONFIG_SERIAL_UART_ARCH_IOCTL - int ret = uart_ioctl(filep, cmd, arg); + ret = uart_ioctl(filep, cmd, arg); if (ret != -ENOTTY) { return ret; } +#else + ret = OK; #endif switch (cmd)