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

Paul Walmsley pjw at kernel.org
Wed May 13 16:01:24 PDT 2026


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 at sifive.com>

Thanks, queued for v7.2.


- Paul



More information about the linux-riscv mailing list