Re: [PATCH] um: Use swap() instead of open coding it

2023-11-21 Thread Johannes Berg
On Wed, 2023-11-22 at 11:25 +0800, Jiapeng Chong wrote: > Swap is a function interface that provides exchange function. To avoid > code duplication, we can use swap function. > > ./arch/um/os-Linux/sigio.c:81:28-29: WARNING opportunity for swap(). > Hm. There's already a use of swap() here in th

[PATCH] um: Use swap() instead of open coding it

2023-11-21 Thread Jiapeng Chong
Swap is a function interface that provides exchange function. To avoid code duplication, we can use swap function. ./arch/um/os-Linux/sigio.c:81:28-29: WARNING opportunity for swap(). Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7607 Signed-off-by: Jiapeng Chon