Skip to content

Commit e47b65b

Browse files
sravnborgtorvalds
authored andcommitted
net: drop NET dependency from HAVE_BPF_JIT
There is no point having the NET dependency on the select target, as it forces all users to depend on NET to tell they support BPF_JIT. Move the config option to the bottom of the file - this could be a nice place also for future "selectable" config symbols. Fix up all users to drop the dependency on NET now that it is not required to supress warnings for non-NET builds. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: David Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8e95a53 commit e47b65b

5 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ config ARM
3333
select GENERIC_IRQ_SHOW
3434
select CPU_PM if (SUSPEND || CPU_IDLE)
3535
select GENERIC_PCI_IOMAP
36-
select HAVE_BPF_JIT if NET
36+
select HAVE_BPF_JIT
3737
help
3838
The ARM series is a line of low-power-consumption RISC chip designs
3939
licensed by ARM Ltd and targeted at embedded applications and

‎arch/powerpc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ config PPC
141141
select IRQ_FORCED_THREADING
142142
select HAVE_RCU_TABLE_FREE if SMP
143143
select HAVE_SYSCALL_TRACEPOINTS
144-
select HAVE_BPF_JIT if (PPC64 && NET)
144+
select HAVE_BPF_JIT if PPC64
145145
select HAVE_ARCH_JUMP_LABEL
146146
select ARCH_HAVE_NMI_SAFE_CMPXCHG
147147

‎arch/sparc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ config SPARC
3030
select USE_GENERIC_SMP_HELPERS if SMP
3131
select GENERIC_PCI_IOMAP
3232
select HAVE_NMI_WATCHDOG if SPARC64
33-
select HAVE_BPF_JIT if NET
33+
select HAVE_BPF_JIT
3434

3535
config SPARC32
3636
def_bool !64BIT

‎arch/x86/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ config X86
7777
select GENERIC_CLOCKEVENTS_MIN_ADJUST
7878
select IRQ_FORCED_THREADING
7979
select USE_GENERIC_SMP_HELPERS if SMP
80-
select HAVE_BPF_JIT if (X86_64 && NET)
80+
select HAVE_BPF_JIT if X86_64
8181
select CLKEVT_I8253
8282
select ARCH_HAVE_NMI_SAFE_CMPXCHG
8383
select GENERIC_IOMAP

‎net/Kconfig‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,6 @@ config BQL
246246
select DQL
247247
default y
248248

249-
config HAVE_BPF_JIT
250-
bool
251-
252249
config BPF_JIT
253250
bool "enable BPF Just In Time compiler"
254251
depends on HAVE_BPF_JIT
@@ -340,3 +337,7 @@ source "net/nfc/Kconfig"
340337

341338

342339
endif # if NET
340+
341+
# Used by archs to tell that they support BPF_JIT
342+
config HAVE_BPF_JIT
343+
bool

0 commit comments

Comments
 (0)