[PATCH 2/2] RISC-V: make use of variadic sbi_ecall
David Laight
david.laight.linux at gmail.com
Fri Jun 13 08:52:26 PDT 2025
On Fri, 13 Jun 2025 16:10:52 +0200
Radim Krčmář <rkrcmar at ventanamicro.com> wrote:
...
> The macro will result in the same arguments as before, and it is what
> the sbi_ecall actually should do.
Ugg...
Are you using pre-processor 'magic' to add a pile of zeros and then
select the first 'n' arguments?
That ought to be banned as error prone.
I think the one for strncpy() removes the immediate compile error for:
strncpy(dest, src, 1, 2);
David
More information about the linux-riscv
mailing list