From 9867c1b46755da62446ea2e9e145a09753b24c93 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 9 Nov 2020 20:14:19 +0900 Subject: [PATCH] arch/arm/src/imx6/imx_serial.c: Fix a type mismatch Error: chip/imx_serial.c:259:21: error: initialization of 'int (*)(struct uart_dev_s *, unsigned int *)' from incompatible pointer type 'int (*)(struct uart_dev_s *, uint32_t *)' {aka 'int (*)(struct uart_dev_s *, long unsigned int *)'} [-Werror=incompatible-pointer-types] 259 | .receive = imx_receive, | ^~~~~~~~~~~ chip/imx_serial.c:259:21: note: (near initialization for 'g_uart_ops.receive') --- arch/arm/src/imx6/imx_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/imx6/imx_serial.c b/arch/arm/src/imx6/imx_serial.c index 9da387e354..a686b760d7 100644 --- a/arch/arm/src/imx6/imx_serial.c +++ b/arch/arm/src/imx6/imx_serial.c @@ -231,7 +231,7 @@ static int imx_attach(struct uart_dev_s *dev); static void imx_detach(struct uart_dev_s *dev); static int imx_interrupt(int irq, void *context, FAR void *arg); static int imx_ioctl(struct file *filep, int cmd, unsigned long arg); -static int imx_receive(struct uart_dev_s *dev, uint32_t *status); +static int imx_receive(struct uart_dev_s *dev, unsigned int *status); static void imx_rxint(struct uart_dev_s *dev, bool enable); static bool imx_rxavailable(struct uart_dev_s *dev); static void imx_send(struct uart_dev_s *dev, int ch); @@ -747,7 +747,7 @@ static int imx_ioctl(struct file *filep, int cmd, unsigned long arg) * ****************************************************************************/ -static int imx_receive(struct uart_dev_s *dev, uint32_t *status) +static int imx_receive(struct uart_dev_s *dev, unsigned int *status) { struct imx_uart_s *priv = (struct imx_uart_s *)dev->priv; uint32_t rxd0;