mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 10:21:38 +00:00
The sifive-uart and cadence-uart drivers store the input clock frequency and baudrate into file-static globals during init, but never read them back; the divisor is computed directly from the function arguments. Clang 23 adds -Wunused-but-set-global, which is enabled by -Wall, so the build fails with -Werror: sifive-uart.c:34:12: error: variable 'uart_in_freq' set but not used [-Werror,-Wunused-but-set-global] sifive-uart.c:35:12: error: variable 'uart_baudrate' set but not used [-Werror,-Wunused-but-set-global] Drop the dead variables. Signed-off-by: Khem Raj <raj.khem@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org> Link: https://lore.kernel.org/r/20261015203610.835320-1-khem.raj@oss.qualcomm.com Signed-off-by: Anup Patel <anup@brainfault.org>