diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2025-04-10 07:05:25 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2025-05-08 10:01:00 -0700 |
commit | cdf647e817143c9762c5bdf724ca2821a171f011 (patch) | |
tree | 8096383227dbcf0074c1e1672f9bc5b6c62f533b /scripts/generate_rust_analyzer.py | |
parent | 62135bf660b2c3887e22f33d3adbefedb4dc9c7a (diff) |
riscv: uaccess: use 'asm goto' for put_user()
With 'asm goto' we don't need to test the error etc, the exception just
jumps to the error handling directly.
Because there are no output clobbers which could trigger gcc bugs [1]
the use of asm_goto_output() macro is not necessary here. Not using
asm_goto_output() is desirable as the generated output asm will be
cleaner.
Use of the volatile keyword is redundant as per gcc 14.2.0 manual section
6.48.2.7 Goto Labels:
> Also note that an asm goto statement is always implicitly considered
volatile.
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113921 # 1
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
[Cyril Bur: Rewritten commit message]
Signed-off-by: Cyril Bur <cyrilbur@tenstorrent.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20250410070526.3160847-5-cyrilbur@tenstorrent.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions