[PATCH RFC v2] riscv: Use 64-bit variable for output in __get_user_asm
Nathan Chancellor
nathan at kernel.org
Thu Jan 15 21:10:11 PST 2026
On Wed, Jan 14, 2026 at 06:02:46PM -0700, Paul Walmsley wrote:
> I'm assuming this would be a temporary patch, and that we might be able to
> remove it at some point (years, I guess?)
Yes, ideally this would be short lived but unfortunately, I am not
really sure what the plan to fix this on the LLVM side is :/ Maybe Craig
or Bill can comment on that.
> Might be worth adding a comment in the code to explain why a temporary
> variable is needed.
I will insert:
/*
* Use a temporary variable for the output of the asm goto to avoid a
* triggering an LLVM assertion due to sign extending the output when
* it is used in function calls:
* https://github.com/llvm/llvm-project/issues/143795
*/
I will send v3 either tomorrow or Monday.
Cheers,
Nathan
More information about the linux-riscv
mailing list