From d3779304b12d3e46337e53fa3497dc464d3f455f Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 9 Nov 2020 20:11:04 +0900 Subject: [PATCH] arch/arm/src/efm32/efm32_leserial.c: Fix a type mismatch Error: chip/efm32_leserial.c:189: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] 189 | .receive = efm32_receive, | ^~~~~~~~~~~~~ chip/efm32_leserial.c:189:21: note: (near initialization for 'g_leuart_ops.receive') --- arch/arm/src/efm32/efm32_leserial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/efm32/efm32_leserial.c b/arch/arm/src/efm32/efm32_leserial.c index 52be2151a1..951dda623c 100644 --- a/arch/arm/src/efm32/efm32_leserial.c +++ b/arch/arm/src/efm32/efm32_leserial.c @@ -167,7 +167,7 @@ static int efm32_attach(struct uart_dev_s *dev); static void efm32_detach(struct uart_dev_s *dev); static int efm32_interrupt(int irq, void *context, FAR void *arg); static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg); -static int efm32_receive(struct uart_dev_s *dev, uint32_t *status); +static int efm32_receive(struct uart_dev_s *dev, unsigned int *status); static void efm32_rxint(struct uart_dev_s *dev, bool enable); static bool efm32_rxavailable(struct uart_dev_s *dev); static void efm32_send(struct uart_dev_s *dev, int ch); @@ -583,7 +583,7 @@ static int efm32_ioctl(struct file *filep, int cmd, unsigned long arg) * ****************************************************************************/ -static int efm32_receive(struct uart_dev_s *dev, uint32_t *status) +static int efm32_receive(struct uart_dev_s *dev, unsigned int *status) { struct efm32_leuart_s *priv = (struct efm32_leuart_s *)dev->priv; uint32_t rxdatax;