]> 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)
commitbfd9273945e5cc85dafa3d58ab973a69715440d2
tree2b57130d69ee33988be17c876f4a3ea2b6d292dc
parentf04a170dd29e7498e0879b62bb9dc99036a210c7
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