]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: return void from damon_set_schemes()
authorKaixu Xia <kaixuxia@tencent.com>
Fri, 16 Sep 2022 15:20:35 +0000 (23:20 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:27 +0000 (14:03 -0700)
commitff795a9192d0a51a33b4bf270bdbeef68af5030a
tree12000cacb6abf5d50169748193aae103bcb4f4c7
parent46309c0a8be2a40a660315b9d5bd0b0c739c860f
mm/damon: return void from damon_set_schemes()

There is no point in returning an int from damon_set_schemes().  It always
returns 0 which is meaningless for the caller, so change it to return void
directly.

Link: https://lkml.kernel.org/r/1663341635-12675-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/dbgfs.c
mm/damon/lru_sort.c
mm/damon/reclaim.c