diff options
author | Jiapeng Chong <[email protected]> | 2023-03-30 10:00:14 +0800 |
---|---|---|
committer | Josh Poimboeuf <[email protected]> | 2023-05-16 06:06:56 -0700 |
commit | 95f0e3a209b0045a56a06987d85981280f523270 (patch) | |
tree | 3c0209e26a76c10bda678a9f40c4f6762fb577a5 /include/linux/compiler_attributes.h | |
parent | f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff) |
x86/unwind/orc: Use swap() instead of open coding it
Swap is a function interface that provides exchange function. To avoid
code duplication, we can use swap function.
./arch/x86/kernel/unwind_orc.c:235:16-17: WARNING opportunity for swap().
Reported-by: Abaci Robot <[email protected]>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4641
Signed-off-by: Jiapeng Chong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Josh Poimboeuf <[email protected]>
Diffstat (limited to 'include/linux/compiler_attributes.h')
0 files changed, 0 insertions, 0 deletions