Skip to contentSkip to conversation

net: microchip: vcap: Stop selecting DEBUG_FS for KUnit tests

PATCH Applied Karl Mehltretter 4 participants 4 messages Sep 17 – Sep 21

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: microchip: vcap: Stop selecting DEBUG_FS for KUnit tests

VCAP_KUNIT_TEST enables DEBUG_FS even when the kernel configuration leaves it disabled. Remove the selection, following the dependency rule in Documentation/dev-tools/kunit/style.rst.

The debugfs implementation and its tests are already built only with DEBUG_FS. The other VCAP tests can run without it.

Fixes 552b7d131aa0 ("net: microchip: sparx5: Add VCAP debugfs KUNIT test")
Assisted-by LLM

---
Validation on net c9151088f167: x86_64 LLVM builds and QEMU runs with DEBUG_FS disabled and enabled. The other VCAP suites pass in both configurations. The debugfs suite is present only with DEBUG_FS=y and all four cases pass.

 drivers/net/ethernet/microchip/vcap/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/microchip/vcap/Kconfig +0 -1
index 97f43fd4473f..1af30a358a15 100644
@@ -40,7 +40,6 @@ config VCAP_KUNIT_TEST
 	bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS
 	depends on KUNIT
 	depends on KUNIT=y && VCAP=y && y
-	select DEBUG_FS
 	default KUNIT_ALL_TESTS
 	help
 	  This builds unit tests for the VCAP library.

base-commit: c9151088f1674fd29ff26a20f5fc687acf53a2f0

maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 32 lines

VCAP_KUNIT_TEST enables DEBUG_FS even when the kernel configuration leaves it disabled. Remove the selection, following the dependency rule in Documentation/dev-tools/kunit/style.rst.

The debugfs implementation and its tests are already built only with DEBUG_FS. The other VCAP tests can run without it.

Fixes 552b7d131aa0 ("net: microchip: sparx5: Add VCAP debugfs KUNIT test")
Assisted-by LLM

---
Validation on net c9151088f167: x86_64 LLVM builds and QEMU runs with DEBUG_FS disabled and enabled. The other VCAP suites pass in both configurations. The debugfs suite is present only with DEBUG_FS=y and all four cases pass.

 drivers/net/ethernet/microchip/vcap/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/microchip/vcap/Kconfig +0 -1
index 97f43fd4473f..1af30a358a15 100644
@@ -40,7 +40,6 @@ config VCAP_KUNIT_TEST
        bool "KUnit test for VCAP library" if !KUNIT_ALL_TESTS
        depends on KUNIT
        depends on KUNIT=y && VCAP=y && y
-       select DEBUG_FS
        default KUNIT_ALL_TESTS
        help
          This builds unit tests for the VCAP library.
Quoted 1 line

base-commit: c9151088f1674fd29ff26a20f5fc687acf53a2f0

Acked-by on v1 1/1
#2 lore raw
In reply to Karl Mehltretter

Le 17/09/2026 à 14:47, Karl Mehltretter a écrit :

Quoted 7 lines

VCAP_KUNIT_TEST enables DEBUG_FS even when the kernel configuration leaves it disabled. Remove the selection, following the dependency rule in Documentation/dev-tools/kunit/style.rst.

The debugfs implementation and its tests are already built only with DEBUG_FS. The other VCAP tests can run without it.

Quoted 9 lines
Fixes 552b7d131aa0 ("net: microchip: sparx5: Add VCAP debugfs KUNIT test")
Assisted-by LLM

---
Validation on net c9151088f167: x86_64 LLVM builds and QEMU runs with DEBUG_FS disabled and enabled. The other VCAP suites pass in both configurations. The debugfs suite is present only with DEBUG_FS=y and all four cases pass.

Cheers,
-- David

#3 lore raw
In reply to Karl Mehltretter
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 17 Sep 2026 08:47:36 +0200 you wrote:

VCAP_KUNIT_TEST enables DEBUG_FS even when the kernel configuration leaves it disabled. Remove the selection, following the dependency rule in Documentation/dev-tools/kunit/style.rst.

The debugfs implementation and its tests are already built only with DEBUG_FS. The other VCAP tests can run without it.

[...]

Here is the summary with links:
- [net] net: microchip: vcap: Stop selecting DEBUG_FS for KUnit tests

    https://git.kernel.org/netdev/net-next/c/2fba93180872

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html