tty/early: make serial8250_early_{in,out} static again
PATCH 1/1 tty/early: make serial8250_early_{in,out} static again
Commit ed71871bed719 ("tty/8250_early: Turn serial_in/serial_out into weak symbols") made these routines weak to allow platform specific Big endian override
However recent updates to core, specifically ebc5e20082 ("serial:of_serial: Support big-endian register accesses") and 6e63be3fee14 ("serial: earlycon: Add support for big-endian MMIO accesses") means that round about way to overide the early serial accessors is no longer needed.
--- drivers/tty/serial/8250/8250_early.c | 4 ++-- include/linux/serial_8250.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/tty/serial/8250/8250_early.c +2 -2
@@ -35,7 +35,7 @@#include <asm/io.h> #include <asm/serial.h> -unsigned int __weak __init serial8250_early_in (struct uart_port *port,int offset) +static unsigned int __init serial8250_early_in (struct uart_port *port,int offset) {switch (port->iotype) {case UPIO_MEM :
@@ -51,7 +51,7 @@ unsigned int __weak __init serial8250_early_in(struct uart_port *port, int offse } } -void __weak __init serial8250_early_out (struct uart_port *port,int offset,int value) +static void __init serial8250_early_out (struct uart_port *port,int offset,int value) {switch (port->iotype) {case UPIO_MEM :
include/linux/serial_8250.h +0 -2
@@ -136,8 +136,6 @@ void serial8250_resume_port(int line);extern int early_serial_setup (struct uart_port *port); -extern unsigned int serial8250_early_in (struct uart_port *port,int offset); -extern void serial8250_early_out (struct uart_port *port,int offset,int value);extern int early_serial8250_setup (struct earlycon_device *device,const char *options); extern void serial8250_do_set_termios(struct uart_port *port,
Signature · 1 line
1.9.1
PATCH RESEND 1/1 tty/early: make serial8250_early_{in,out} static again
Commit ed71871bed719 ("tty/8250_early: Turn serial_in/serial_out into weak symbols") made these routines weak to allow platform specific Big endian override
However recent updates to core, specifically ebc5e20082 ("serial:of_serial: Support big-endian register accesses") and 6e63be3fee14 ("serial: earlycon: Add support for big-endian MMIO accesses") means that round about way to overide the early serial accessors is no longer needed.
--- drivers/tty/serial/8250/8250_early.c | 4 ++-- include/linux/serial_8250.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-)
drivers/tty/serial/8250/8250_early.c +2 -2
@@ -35,7 +35,7 @@#include <asm/io.h> #include <asm/serial.h> -unsigned int __weak __init serial8250_early_in (struct uart_port *port,int offset) +static unsigned int __init serial8250_early_in (struct uart_port *port,int offset) {switch (port->iotype) {case UPIO_MEM :
@@ -51,7 +51,7 @@ unsigned int __weak __init serial8250_early_in(struct uart_port *port, int offse } } -void __weak __init serial8250_early_out (struct uart_port *port,int offset,int value) +static void __init serial8250_early_out (struct uart_port *port,int offset,int value) {switch (port->iotype) {case UPIO_MEM :
include/linux/serial_8250.h +0 -2
@@ -136,8 +136,6 @@ void serial8250_resume_port(int line);extern int early_serial_setup (struct uart_port *port); -extern unsigned int serial8250_early_in (struct uart_port *port,int offset); -extern void serial8250_early_out (struct uart_port *port,int offset,int value);extern int early_serial8250_setup (struct earlycon_device *device,const char *options); extern void serial8250_do_set_termios(struct uart_port *port,
Signature · 1 line
1.9.1
Quoted 10 lines
From: Vineet Gupta [mailto:[email protected]]
Sent: Thursday, July 09, 2015 9:21 AMCommit
ed71871bed719("tty/8250_early: Turn serial_in/serial_out into weak symbols") made these routines weak to allow platform specific Big endian overrideHowever recent updates to core, specifically
ebc5e20082("serial:of_serial: Support big-endian register accesses") and6e63be3fee14
("serial: earlycon: Add support for big-endian MMIO accesses") means that round about way to override the early serial accessors is no longer needed.
As author of commit ed71871bed719 my original problem is now solved in more generic way and there is no more need for the __weak attribute on these two early serial accessors.
ACK
Quoted 9 lines · Vineet Gupta
Commit
ed71871bed719("tty/8250_early: Turn serial_in/serial_out into weak symbols") made these routines weak to allow platform specific Big endian overrideHowever recent updates to core, specifically
ebc5e20082("serial:of_serial: Support big-endian register accesses") and6e63be3fee14("serial: earlycon: Add support for big-endian MMIO accesses") means that round about way to overide the early serial accessors is no longer needed.