mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-24 03:24:55 +08:00
7ae2c17f53
DAMON_RECLAIM and DAMON_LRU_SORT has duplicated code for DAMON context and target initializations. Deduplicate the part by implementing a function for the initialization in 'modules-common.c' and using it. Link: https://lkml.kernel.org/r/20221026225943.100429-12-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
10 lines
378 B
Makefile
10 lines
378 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-y := core.o
|
|
obj-$(CONFIG_DAMON_VADDR) += ops-common.o vaddr.o
|
|
obj-$(CONFIG_DAMON_PADDR) += ops-common.o paddr.o
|
|
obj-$(CONFIG_DAMON_SYSFS) += sysfs-common.o sysfs-schemes.o sysfs.o
|
|
obj-$(CONFIG_DAMON_DBGFS) += dbgfs.o
|
|
obj-$(CONFIG_DAMON_RECLAIM) += modules-common.o reclaim.o
|
|
obj-$(CONFIG_DAMON_LRU_SORT) += modules-common.o lru_sort.o
|