aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2025-01-05 16:22:16 +0000
committerSteven Rostedt (Google) <[email protected]>2025-01-08 03:23:05 +0000
commit7ffc0d0819f438779ed592e2e2e3576f43ce14f0 (patch)
tree66d6475f8dbaf4db716d616434678ed2c687b046 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
parentscripts/sorttable: Have the ORC code use the _r() functions to read (diff)
downloadkernel-7ffc0d0819f438779ed592e2e2e3576f43ce14f0.tar.gz
kernel-7ffc0d0819f438779ed592e2e2e3576f43ce14f0.zip
scripts/sorttable: Make compare_extable() into two functions
Instead of having the compare_extable() part of the sorttable.h header where it get's defined twice, since it is a very simple function, just define it twice in sorttable.c, and then it can use the proper read functions for the word size and endianess and the Elf_Addr macro can be removed from sorttable.h. Also add a micro optimization. Instead of: if (a < b) return -1; if (a > b) return 1; return 0; That can be shorten to: if (a < b) return -1; return a > b; Cc: bpf <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Nathan Chancellor <[email protected]> Cc: Nicolas Schier <[email protected]> Cc: Zheng Yejian <[email protected]> Cc: Martin Kelly <[email protected]> Cc: Christophe Leroy <[email protected]> Cc: Josh Poimboeuf <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions