From: Eric Dumazet <edumazet@google.com>
Date: Thu, 2 Jun 2022 16:18:57 +0000 (-0700)
Subject: net: CONFIG_DEBUG_NET depends on CONFIG_NET
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb0b39efb7d9;p=linux.git

net: CONFIG_DEBUG_NET depends on CONFIG_NET

It makes little sense to debug networking stacks
if networking is not compiled in.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---

diff --git a/net/Kconfig.debug b/net/Kconfig.debug
index a5781cf63b16b..e6ae11cc2fb7c 100644
--- a/net/Kconfig.debug
+++ b/net/Kconfig.debug
@@ -20,7 +20,7 @@ config NET_NS_REFCNT_TRACKER
 
 config DEBUG_NET
 	bool "Add generic networking debug"
-	depends on DEBUG_KERNEL
+	depends on DEBUG_KERNEL && NET
 	help
 	  Enable extra sanity checks in networking.
 	  This is mostly used by fuzzers, but is safe to select.