2022-02-21 09:27:19

by tangmeng

[permalink] [raw]
Subject: [PATCH] mm/damon: remove unnecessary CONFIG_DAMON option

In mm/Makefile has:
obj-$(CONFIG_DAMON) += damon/

So that we don't need 'obj-$(CONFIG_DAMON) :=' in mm/damon/Makefile,
delete it from mm/demon/Makefile.

Signed-off-by: tangmeng <[email protected]>
---
mm/damon/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/damon/Makefile b/mm/damon/Makefile
index 03931472991a..aebbf6c14c51 100644
--- a/mm/damon/Makefile
+++ b/mm/damon/Makefile
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0

-obj-$(CONFIG_DAMON) := core.o
+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_DBGFS) += dbgfs.o
--
2.20.1




2022-02-23 02:25:08

by David Rientjes

[permalink] [raw]
Subject: Re: [PATCH] mm/damon: remove unnecessary CONFIG_DAMON option

On Mon, 21 Feb 2022, tangmeng wrote:

> In mm/Makefile has:
> obj-$(CONFIG_DAMON) += damon/
>
> So that we don't need 'obj-$(CONFIG_DAMON) :=' in mm/damon/Makefile,
> delete it from mm/demon/Makefile.
>

s/demon/damon/