summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Fedorenko <vadfed@meta.com>2024-05-01 19:01:30 +0200
committerMartin KaFai Lau <martin.lau@kernel.org>2024-05-01 22:32:26 +0200
commitac2f438c2a85acd07e0ac7dc2f69d45bda1bb498 (patch)
tree3dc85b54ee0f51405712da26609aa35e413f3017
parentlibbpf: better fix for handling nulled-out struct_ops program (diff)
downloadlinux-ac2f438c2a85acd07e0ac7dc2f69d45bda1bb498.tar.xz
linux-ac2f438c2a85acd07e0ac7dc2f69d45bda1bb498.zip
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: 3e1c6f35409f ("bpf: make common crypto API for TC/XDP programs") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202405011634.4JK40epY-lkp@intel.com/ Signed-off-by: Vadim Fedorenko <vadfed@meta.com> Link: https://lore.kernel.org/r/20240501170130.1682309-1-vadfed@meta.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
-rw-r--r--kernel/bpf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/Makefile b/kernel/bpf/Makefile
index 85786fd97d2a..7eb9ad3a3ae6 100644
--- a/kernel/bpf/Makefile
+++ b/kernel/bpf/Makefile
@@ -44,7 +44,7 @@ obj-$(CONFIG_BPF_SYSCALL) += bpf_struct_ops.o
obj-$(CONFIG_BPF_SYSCALL) += cpumask.o
obj-${CONFIG_BPF_LSM} += bpf_lsm.o
endif
-ifeq ($(CONFIG_CRYPTO),y)
+ifneq ($(CONFIG_CRYPTO),)
obj-$(CONFIG_BPF_SYSCALL) += crypto.o
endif
obj-$(CONFIG_BPF_PRELOAD) += preload/