Skip to contentSkip to conversation

kunit: configs: Enable CONFIG_DAMON_DBGFS_DEPRECATED for --alltests

PATCH In review David Gow 4 participants 4 messages Mar 26, 2024 – Mar 27, 2024

Subsystems (3)
lore
Share & tools
lore

David Gow

author
#0 lore raw

PATCH 1/1 kunit: configs: Enable CONFIG_DAMON_DBGFS_DEPRECATED for --alltests

This is required, as CONFIG_DAMON_DEBUGFS is enabled, and --alltests UML builds will fail due to the missing config option otherwise.

Fixes f4cba4bf6777 ("mm/damon: rename CONFIG_DAMON_DBGFS to DAMON_DBGFS_DEPRECATED")

---

This is breaking all UML alltests builds, so we'd like to fix it sooner rather than later. SeongJae, would you rather take this yourself, or can we push it alongside any other KUnit fixes?

Johannes: Does this conflict with the CONFIG_NETDEVICES / CONFIG_WLAN fixes to all_tests.config? I'd assume not, but I'm happy to take them via KUnit if you'd prefer anyway.

Thanks,
-- David

---
 tools/testing/kunit/configs/all_tests.config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/kunit/configs/all_tests.config +1 -0
index aa5ec149f96c..f388742cf266 100644
@@ -38,6 +38,7 @@ CONFIG_DAMON_VADDR=y
 CONFIG_DAMON_PADDR=y
 CONFIG_DEBUG_FS=y
 CONFIG_DAMON_DBGFS=y
+CONFIG_DAMON_DBGFS_DEPRECATED=y
 
 CONFIG_REGMAP_BUILD=y
 
Signature · 1 line
2.44.0.396.g6e790dbe36-goog
#1 lore raw
Quoted 5 lines · David Gow

Johannes: Does this conflict with the CONFIG_NETDEVICES / CONFIG_WLAN fixes to all_tests.config? I'd assume not, but I'm happy to take them via KUnit if you'd prefer anyway.

I already have it in my tree, so I guess I'd prefer it to stay, but it also doesn't conflict at all, I added the lines before the existing wireless ones.

johannes

maintainer
#2 lore raw
In reply to David Gow
Quoted 10 lines · On Tue, 26 Mar 2024 18:07:38 +0800 David Gow <[email protected]> wrote:

This is required, as CONFIG_DAMON_DEBUGFS is enabled, and --alltests UML builds will fail due to the missing config option otherwise.

Fixes f4cba4bf6777 ("mm/damon: rename CONFIG_DAMON_DBGFS to DAMON_DBGFS_DEPRECATED")

---

This is breaking all UML alltests builds, so we'd like to fix it sooner rather than later. SeongJae, would you rather take this yourself, or can we push it alongside any other KUnit fixes?

Both are ok for me, but I think you pushing it with other kunit fixes may make things simpler. Please let me know if you'd prefer me to take this, though.

Sorry for the breakage, and thank you for making this nice fix!

Thanks,
SJ

Quoted 26 lines

Johannes: Does this conflict with the CONFIG_NETDEVICES / CONFIG_WLAN fixes to all_tests.config? I'd assume not, but I'm happy to take them via KUnit if you'd prefer anyway.

Thanks,
-- David

---
 tools/testing/kunit/configs/all_tests.config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/kunit/configs/all_tests.config +1 -0
index aa5ec149f96c..f388742cf266 100644
@@ -38,6 +38,7 @@ CONFIG_DAMON_VADDR=y
 CONFIG_DAMON_PADDR=y
 CONFIG_DEBUG_FS=y
 CONFIG_DAMON_DBGFS=y
+CONFIG_DAMON_DBGFS_DEPRECATED=y
 
 CONFIG_REGMAP_BUILD=y
 
Signature · 1 line
2.44.0.396.g6e790dbe36-goog
Reviewed-by on v1 1/1
#3 lore raw
In reply to David Gow
Quoted 6 lines · David Gow

This is required, as CONFIG_DAMON_DEBUGFS is enabled, and --alltests UML builds will fail due to the missing config option otherwise.

Fixes f4cba4bf6777 ("mm/damon: rename CONFIG_DAMON_DBGFS to DAMON_DBGFS_DEPRECATED")

Hello!

This looks good to me. And it takes away the issue with CONFIG_DAMON_DBGFS. But since this is deprecated now, should we move to the DAMON sysfs tests instead in the future? No need to let that stall this patch though.

Thanks!
-Rae

Quoted 32 lines

---

This is breaking all UML alltests builds, so we'd like to fix it sooner rather than later. SeongJae, would you rather take this yourself, or can we push it alongside any other KUnit fixes?

Johannes: Does this conflict with the CONFIG_NETDEVICES / CONFIG_WLAN fixes to all_tests.config? I'd assume not, but I'm happy to take them via KUnit if you'd prefer anyway.

Thanks,
-- David

---
 tools/testing/kunit/configs/all_tests.config | 1 +
 1 file changed, 1 insertion(+)
tools/testing/kunit/configs/all_tests.config +1 -1
index aa5ec149f96c..f388742cf266 100644
@@ -38,6 +38,7 @@ CONFIG_DAMON_VADDR=y
 CONFIG_DAMON_PADDR=y
 CONFIG_DEBUG_FS=y
 CONFIG_DAMON_DBGFS=y
+CONFIG_DAMON_DBGFS_DEPRECATED=y
 
 CONFIG_REGMAP_BUILD=y
 
--

2.44.0.396.g6e790dbe36-goog