Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752808AbcCJPVB (ORCPT ); Thu, 10 Mar 2016 10:21:01 -0500 Received: from web1.dommelhosting.nl ([88.159.17.71]:58672 "EHLO web1.dommelhosting.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752157AbcCJPUw convert rfc822-to-8bit (ORCPT ); Thu, 10 Mar 2016 10:20:52 -0500 X-Footer: dmFubWllcmxvLmNvbQ== To: "Sudip Mukherjee" , "Peter Korsgaard" , "Greg Kroah-Hartman" , "Jiri Slaby" Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, "Sudip Mukherjee" From: "Maarten Brock" Subject: Re: [PATCH] serial-uartlite: fix build warning X-Mailer: Kerio Connect 8.5.0 WebMail Mini Message-ID: <20160310162044.b7b5cd51@kerio.vanmierlo.com> Date: Thu, 10 Mar 2016 16:20:44 +0100 X-User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1743 Lines: 51 I've created a version 2 of this patch immediately which fixes the warning, but somehow this stays ignored. Please apply my second patch! Maarten > 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 > --- > > next-20160310 build log at: > https://travis-ci.org/sudipm-mukherjee/parport/jobs/114988022 > > drivers/tty/serial/uartlite.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c > index c9fdfc8..1474c57 100644 > --- a/drivers/tty/serial/uartlite.c > +++ b/drivers/tty/serial/uartlite.c > @@ -72,7 +72,7 @@ static void uartlite_outbe32(u32 val, void __iomem *addr) > iowrite32be(val, addr); > } > > -static const struct uartlite_reg_ops uartlite_be = { > +static struct uartlite_reg_ops uartlite_be = { > .in = uartlite_inbe32, > .out = uartlite_outbe32, > }; > @@ -87,7 +87,7 @@ static void uartlite_outle32(u32 val, void __iomem *addr) > iowrite32(val, addr); > } > > -static const struct uartlite_reg_ops uartlite_le = { > +static struct uartlite_reg_ops uartlite_le = { > .in = uartlite_inle32, > .out = uartlite_outle32, > }; > -- > 1.9.1