Re: [PATCH] serial-uartlite: fix build warning

From: Geert Uytterhoeven
Date: Fri Mar 18 2016 - 08:48:26 EST


On Thu, Mar 10, 2016 at 2:14 PM, Sudip Mukherjee
<sudipm.mukherjee@xxxxxxxxx> wrote:
> We were getting build warnings about:
> drivers/tty/serial/uartlite.c: In function âulite_request_portâ:
> drivers/tty/serial/uartlite.c:348:21: warning: assignment discards
> 'const' qualifier from pointer target type
> port->private_data = &uartlite_be;
> ^
> drivers/tty/serial/uartlite.c:354:22: warning: assignment discards
> 'const' qualifier from pointer target type
> port->private_data = &uartlite_le;
> ^
>
> Fixes: 2905697a82ea ("serial-uartlite: Constify uartlite_be/uartlite_le")
> Signed-off-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>

Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds