Re: [PATCH] selftests/riscv: fix compiler output flag spacing in all Makefiles

From: Paul Walmsley

Date: Wed May 13 2026 - 19:01:40 EST


On Sun, 10 May 2026, Zong Li wrote:

> Standardize the compiler output flag format across all RISC-V
> selftests by adding a space between '-o' and '$@'.
>
> Although '-o$@' is perfectly valid for GCC/Clang to parse, But
> changing it to '-o $@' with a space could align with the GNU
> official documentation conventions, improves readability by
> visually separating the flag from the target variable, and
> ensures consistency with other architectures
>
> Currently, RISC-V selftests use '-o$@' (without space) in 13
> instances across 6 Makefiles, while all other architectures
> consistently use '-o $@' (with space). This inconsistency makes
> RISC-V an outlier in the kernel's selftest infrastructure.
>
> Signed-off-by: Zong Li <zong.li@xxxxxxxxxx>

Thanks, queued for v7.2.


- Paul