Re: [PATCH 2/2] RISC-V: make use of variadic sbi_ecall
From: David Laight
Date: Fri Jun 13 2025 - 11:54:21 EST
On Fri, 13 Jun 2025 16:10:52 +0200
Radim Krčmář <rkrcmar@xxxxxxxxxxxxxxxx> 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