Skip to content

Commit ac2f438

Browse files
vvfedorenkoMartin KaFai Lau
authored andcommitted
bpf: crypto: fix build when CONFIG_CRYPTO=m
Crypto subsytem can be build as a module. In this case we still have to build BPF crypto framework otherwise the build will fail. Fixes: 3e1c6f3 ("bpf: make common crypto API for TC/XDP programs") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Vadim Fedorenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
1 parent 0737df6 commit ac2f438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o
4444
obj-$(CONFIG_BPF_SYSCALL) += cpumask.o
4545
obj-${CONFIG_BPF_LSM} += bpf_lsm.o
4646
endif
47-
ifeq ($(CONFIG_CRYPTO),y)
47+
ifneq ($(CONFIG_CRYPTO),)
4848
obj-$(CONFIG_BPF_SYSCALL) += crypto.o
4949
endif
5050
obj-$(CONFIG_BPF_PRELOAD) += preload/

0 commit comments

Comments
 (0)