diff options
| author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2016-09-02 07:20:21 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-02 09:03:35 -0400 |
| commit | 46e36683f433528bfb7e5754ca5c5c86c204c40a (patch) | |
| tree | 21d6c4a885ea8fb7c7ee64ed7f77b845281e5980 /include/linux | |
| parent | 8f975fe49dba5d15a828f34ad8ec3dc8beb60ca0 (diff) | |
serial: earlycon: Extend earlycon command line option to support 64-bit addresses
earlycon implementation used "unsigned long" internally, but there are systems
(ARM with LPAE) where sizeof(unsigned long) == 4 and uart is mapped beyond 4GiB
address range.
Switch to resource_size_t internally and replace obsoleted simple_strtoul() with
kstrtoull().
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/serial_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 2f44e2013654..cdba6f144f72 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -374,7 +374,7 @@ extern int of_setup_earlycon(const struct earlycon_id *match, | |||
| 374 | 374 | ||
| 375 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, | 375 | struct uart_port *uart_get_console(struct uart_port *ports, int nr, |
| 376 | struct console *c); | 376 | struct console *c); |
| 377 | int uart_parse_earlycon(char *p, unsigned char *iotype, unsigned long *addr, | 377 | int uart_parse_earlycon(char *p, unsigned char *iotype, resource_size_t *addr, |
| 378 | char **options); | 378 | char **options); |
| 379 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, | 379 | void uart_parse_options(char *options, int *baud, int *parity, int *bits, |
| 380 | int *flow); | 380 | int *flow); |
