aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJisheng Zhang <[email protected]>2025-04-10 07:05:25 +0000
committerPalmer Dabbelt <[email protected]>2025-05-08 17:01:00 +0000
commitcdf647e817143c9762c5bdf724ca2821a171f011 (patch)
tree8096383227dbcf0074c1e1672f9bc5b6c62f533b /scripts/bpf_doc.py
parentriscv: uaccess: use input constraints for ptr of __put_user() (diff)
downloadkernel-cdf647e817143c9762c5bdf724ca2821a171f011.tar.gz
kernel-cdf647e817143c9762c5bdf724ca2821a171f011.zip
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 <[email protected]> [Cyril Bur: Rewritten commit message] Signed-off-by: Cyril Bur <[email protected]> Reviewed-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions