Skip to contentSkip to conversation

net: remove redundant 'depends on NET'

PATCH Applied Masahiro Yamada 2 participants 2 messages Jan 25, 2021 – Jan 28, 2021

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

PATCH 1/1 net: remove redundant 'depends on NET'

These Kconfig files are included from net/Kconfig, inside the if NET ... endif.

Remove 'depends on NET', which we know it is already met.

---

 net/9p/Kconfig             | 1 -
 net/batman-adv/Kconfig     | 1 -
 net/bluetooth/Kconfig      | 2 +-
 net/bpfilter/Kconfig       | 2 +-
 net/can/Kconfig            | 1 -
 net/dns_resolver/Kconfig   | 2 +-
 net/ife/Kconfig            | 1 -
 net/llc/Kconfig            | 1 -
 net/netfilter/Kconfig      | 2 +-
 net/netfilter/ipvs/Kconfig | 2 +-
 net/nfc/Kconfig            | 1 -
 net/psample/Kconfig        | 1 -
 12 files changed, 5 insertions(+), 12 deletions(-)
net/9p/Kconfig +0 -1
index 3d11fec3a8dc..64468c49791f 100644
@@ -4,7 +4,6 @@
 #
 
 menuconfig NET_9P
-	depends on NET
 	tristate "Plan 9 Resource Sharing Support (9P2000)"
 	help
 	  If you say Y here, you will get experimental support for
net/batman-adv/Kconfig +0 -1
index 993afd5ff7bb..43ae3dcbbbeb 100644
@@ -9,7 +9,6 @@
 
 config BATMAN_ADV
 	tristate "B.A.T.M.A.N. Advanced Meshing Protocol"
-	depends on NET
 	select LIBCRC32C
 	help
 	  B.A.T.M.A.N. (better approach to mobile ad-hoc networking) is
net/bluetooth/Kconfig +1 -1
index 64e669acd42f..400c5130dc0a 100644
@@ -5,7 +5,7 @@
 
 menuconfig BT
 	tristate "Bluetooth subsystem support"
-	depends on NET && !S390
+	depends on !S390
 	depends on RFKILL || !RFKILL
 	select CRC16
 	select CRYPTO
net/bpfilter/Kconfig +1 -1
index 8ad0233ce497..3d4a21462458 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menuconfig BPFILTER
 	bool "BPF based packet filtering framework (BPFILTER)"
-	depends on NET && BPF && INET
+	depends on BPF && INET
 	select USERMODE_DRIVER
 	help
 	  This builds experimental bpfilter framework that is aiming to
net/can/Kconfig +0 -1
index 7c9958df91d3..a9ac5ffab286 100644
@@ -4,7 +4,6 @@
 #
 
 menuconfig CAN
-	depends on NET
 	tristate "CAN bus subsystem support"
 	help
 	  Controller Area Network (CAN) is a slow (up to 1Mbit/s) serial
net/dns_resolver/Kconfig +1 -1
index 255df9b6e9e8..155b06163409 100644
@@ -4,7 +4,7 @@
 #
 config DNS_RESOLVER
 	tristate "DNS Resolver support"
-	depends on NET && KEYS
+	depends on KEYS
 	help
 	  Saying Y here will include support for the DNS Resolver key type
 	  which can be used to make upcalls to perform DNS lookups in
net/ife/Kconfig +0 -1
index bcf650564db4..de36a5b91e50 100644
@@ -4,7 +4,6 @@
 #
 
 menuconfig NET_IFE
-	depends on NET
 	tristate "Inter-FE based on IETF ForCES InterFE LFB"
 	default n
 	help
net/llc/Kconfig +0 -1
index b0e646ac47eb..7f79f5e134f9 100644
@@ -1,7 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config LLC
 	tristate
-	depends on NET
 
 config LLC2
 	tristate "ANSI/IEEE 802.2 LLC type 2 Support"
net/netfilter/Kconfig +1 -1
index 49fbef0d99be..1a92063c73a4 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 menu "Core Netfilter Configuration"
-	depends on NET && INET && NETFILTER
+	depends on INET && NETFILTER
 
 config NETFILTER_INGRESS
 	bool "Netfilter ingress support"
net/netfilter/ipvs/Kconfig +1 -1
index eb0e329f9b8d..c39a1e35c104 100644
@@ -4,7 +4,7 @@
 #
 menuconfig IP_VS
 	tristate "IP virtual server support"
-	depends on NET && INET && NETFILTER
+	depends on INET && NETFILTER
 	depends on (NF_CONNTRACK || NF_CONNTRACK=n)
 	help
 	  IP Virtual Server support will let you build a high-performance
net/nfc/Kconfig +0 -1
index 96b91674dd37..466a0279b93e 100644
@@ -4,7 +4,6 @@
 #
 
 menuconfig NFC
-	depends on NET
 	depends on RFKILL || !RFKILL
 	tristate "NFC subsystem support"
 	default n
net/psample/Kconfig +0 -1
index 028f514a9c60..be0b839209ba 100644
@@ -4,7 +4,6 @@
 #
 
 menuconfig PSAMPLE
-	depends on NET
 	tristate "Packet-sampling netlink channel"
 	default n
 	help
Signature · 1 line
2.27.0
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 8 lines · On Tue, 26 Jan 2021 08:20:26 +0900 you wrote:

These Kconfig files are included from net/Kconfig, inside the if NET ... endif.

Remove 'depends on NET', which we know it is already met.

[...]

Here is the summary with links:
- net: remove redundant 'depends on NET'

    https://git.kernel.org/netdev/net-next/c/864e898ba3f6

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html