Re: [PATCH] mm: userfaultfd: Use swap() in double_pt_lock()
From: Wei Yang
Date: Sat Jun 01 2024 - 10:09:03 EST
On Fri, May 31, 2024 at 05:16:43PM +0800, Jiapeng Chong wrote:
>Use existing swap() function rather than duplicating its implementation.
>
>/mm/userfaultfd.c:1006:13-14: WARNING opportunity for swap()
>
>Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
>Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9266
>Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx>
--
Wei Yang
Help you, Help me