diff options
| author | Arnd Bergmann <[email protected]> | 2024-08-07 09:57:44 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-08-07 13:06:57 +0200 |
| commit | dce2cbd18f52c413222e5967ea0400de0423b684 (patch) | |
| tree | 304b8dd31f5869d5ff52c109ad93f03fd4faeb57 /tools/perf/scripts/python/parallel-perf.py | |
| parent | a2a815c7be9bcd5d58f552aacbedcc3702e9a753 (diff) | |
serial: 8250_platform: fix uart_8250_port initializer
The first element in uart_8250_port is a structure, so initializing
it to 0 causes a warning on newer compilers:
drivers/tty/serial/8250/8250_platform.c: In function 'serial8250_platform_probe':
drivers/tty/serial/8250/8250_platform.c:111:40: error: excess elements in struct initializer [-Werror]
111 | struct uart_8250_port uart = { 0 };
Use the modern empty {} initializer instead that works on all
supported compilers.
Fixes: d9e5a0ce2f16 ("serial: 8250_platform: Enable generic 16550A platform devices")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Sunil V L <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions