]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/reclaim: use resource_size function on resource object
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 13 May 2022 03:23:07 +0000 (20:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 13 May 2022 14:20:18 +0000 (07:20 -0700)
commit1c3d04cf686caa3b05109113ec174325a62cff6a
treeb0c1aae2298e662a5598fe0b17c1b6f3fd576d99
parentbcef0ae9540901c6d1761e55f469850585dbf809
mm/damon/reclaim: use resource_size function on resource object

Fix the following coccicheck warnings:

./mm/damon/reclaim.c:241:30-33: WARNING: Suspicious code. resource_size is maybe missing with res.

Link: https://lkml.kernel.org/r/20220507032512.129598-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Cc: "Boehme, Markus" <markubo@amazon.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/reclaim.c