]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: move damon_rand() definition into damon.h
authorXin Hao <xhao@linux.alibaba.com>
Fri, 14 Jan 2022 22:09:53 +0000 (14:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:32 +0000 (16:30 +0200)
commitea9ee9f5e5382a8ed12f32cebc7d5807e8cc602b
tree2b57130d69ee33988be17c876f4a3ea2b6d292dc
parent89ebafa78e08bc418407509774218956aee07773
mm/damon: move damon_rand() definition into damon.h

damon_rand() is called in three files:damon/core.c, damon/ paddr.c,
damon/vaddr.c, i think there is no need to redefine this twice, So move
it to damon.h will be a good choice.

Link: https://lkml.kernel.org/r/20211202075859.51341-1-xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c
mm/damon/prmtv-common.h