Re: [PATCH V2] tty: serial: Add const to struct uart_ops declarations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Joe Perches <joe@xxxxxxxxxxx>, Stefan Agner <stefan@xxxxxxxx>
- Subject: Re: [PATCH V2] tty: serial: Add const to struct uart_ops declarations
- From: Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx>
- Date: Tue, 7 Apr 2015 12:46:46 +0000
- Accept-language: en-US, en-IN
- Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>, Jiri Slaby <jslaby@xxxxxxx>, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, "kernel@xxxxxxxxxxx" <kernel@xxxxxxxxxxx>, Nicolas Ferre <nicolas.ferre@xxxxxxxxx>, Timur Tabi <timur@xxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Pat Gefre <pfg@xxxxxxx>, Laxman Dewangan <ldewangan@xxxxxxxxxx>, "Maciej W. Rozycki" <macro@xxxxxxxxxxxxxx>, Daniel Walker <dwalker@xxxxxxxxxx>, "sparclinux@xxxxxxxxxxxxxxx" <sparclinux@xxxxxxxxxxxxxxx>, Peter Korsgaard <jacmet@xxxxxxxxxx>, Sonic Zhang <sonic.zhang@xxxxxxxxxx>, Alexandre Courbot <gnurou@xxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Michal Simek <michal.simek@xxxxxxxxxx>, "linux-arm-kernel@xxxxxxxxxxxxxxxxxxx" <linux-arm-kernel@xxxxxxxxxxxxxxxxxxx>, "linux-serial@xxxxxxxxxxxxxxx" <linux-serial@xxxxxxxxxxxxxxx>, Tobias Klauser <tklauser@xxxxxxxxxx>, "Stephen Warren" <swarren@xxxxxxxxxxxxx>, "linux-arm-msm@xxxxxxxxxxxxxxx" <linux-arm-msm@xxxxxxxxxxxxxxx>, "adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx" <adi-buildroot-devel@xxxxxxxxxxxxxxxxxxxxx>, Thadeu Lima de Souza Cascardo <cascardo@xxxxxxxxxxxxxxxxxx>, "linux-tegra@xxxxxxxxxxxxxxx" <linux-tegra@xxxxxxxxxxxxxxx>, David Brown <davidb@xxxxxxxxxxxxxx>, Sören Brinkmann <soren.brinkmann@xxxxxxxxxx>, "Maxime Coquelin" <maxime.coquelin@xxxxxx>, Barry Song <baohua@xxxxxxxxxx>, "Vineet Gupta" <Vineet.Gupta1@xxxxxxxxxxxx>, Patrice Chotard <patrice.chotard@xxxxxx>, Tony Prisk <linux@xxxxxxxxxxxxxxx>, Bryan Huntsman <bryanh@xxxxxxxxxxxxxx>, Thierry Reding <thierry.reding@xxxxxxxxx>, Uwe Kleine-König <kernel@xxxxxxxxxxxxxx>, "Srinivas Kandagatla" <srinivas.kandagatla@xxxxxxxxx>, "nios2-dev@xxxxxxxxxxxxxxxxxxxxxx" <nios2-dev@xxxxxxxxxxxxxxxxxxxxxx>, linuxppc-dev <linuxppc-dev@xxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1428169665.2775.53.camel@perches.com> <a938a0e86638588e5ccff85771fa3b95@agner.ch> <1428258294.2775.69.camel@perches.com>
- Thread-index: AQHQb83YP+bxxJwu6Eqo1PLZ76tTcQ==
- Thread-topic: [PATCH V2] tty: serial: Add const to struct uart_ops declarations
On Sunday 05 April 2015 11:55 PM, Joe Perches wrote:
These structs can be const, so make them const.
Miscellanea:
o Add static to struct uart_ops declaration in bfin_sport_uart
Signed-off-by: Joe Perches <joe@xxxxxxxxxxx><mailto:joe@xxxxxxxxxxx>
---
On Sun, 2015-04-05 at 00:04 +0200, Stefan Agner wrote:
> On 2015-04-04 19:47, Joe Perches wrote:
> > Done with:
> > sed -r -i -e 's/\bstruct\s+uart_ops\s+(\w+)\s*=\s*/const struct
> > uart_ops \1 = /g' drivers/tty/serial/*.c
[]
> +++ b/drivers/tty/serial/fsl_lpuart.c
> Something went wrong in this driver, const is twice...
Apologies, thanks for noticing.
The sed was mistakenly done twice on that file.
V2:
o Fix duplicate const in fsl_lpuart.c
o Add static to drivers/tty/serial/bfin_sport_uart.c
Still compiled only x86 and not cross-compiled or tested.
drivers/tty/serial/21285.c | 2 +-
drivers/tty/serial/altera_jtaguart.c | 2 +-
drivers/tty/serial/altera_uart.c | 2 +-
drivers/tty/serial/amba-pl010.c | 2 +-
drivers/tty/serial/amba-pl011.c | 2 +-
drivers/tty/serial/apbuart.c | 2 +-
drivers/tty/serial/ar933x_uart.c | 2 +-
drivers/tty/serial/arc_uart.c | 2 +-
Acked-by: Vineet Gupta <vgupta@xxxxxxxxxxxx><mailto:vgupta@xxxxxxxxxxxx> # for arc_uart
Th,
-Vineet
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]