diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-12-03 17:30:29 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-04 16:36:17 +0100 |
commit | c1117a2fefbcce30cced3a180585e0adebc0fa89 (patch) | |
tree | 38fa7486a598f40bbeb6f5803f021dea60930445 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fcf5402d7878f201f3104292623ce3ebe99e61cd (diff) |
serial: sh-sci: Use plain struct copy in early_console_setup()
Using memcpy() prevents the compiler from doing any checking on the
types of the passed pointer parameters. Copy the structure using struct
assignment instead, to increase type-safety.
No change in generated code on all relevant architectures
(arm/arm64/riscv/sh).
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/e097e5c11afe5bd4c01135779c9a40e707ef6374.1733243287.git.geert+renesas@glider.be
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions