Skip to contentSkip to conversation

bpf: crypto: fix build when CONFIG_CRYPTO=m

PATCH Applied Vadim Fedorenko 2 participants 2 messages May 1, 2024

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

PATCH 1/1 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")
---
 kernel/bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/bpf/Makefile +1 -1
index 85786fd97d2a..7eb9ad3a3ae6 100644
@@ -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/
Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Martin KaFai Lau <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Martin KaFai Lau <[email protected]>:

Quoted 9 lines · On Wed, 1 May 2024 10:01:30 -0700 you wrote:

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")

[...]

Here is the summary with links:
- [bpf-next] bpf: crypto: fix build when CONFIG_CRYPTO=m

    https://git.kernel.org/bpf/bpf-next/c/ac2f438c2a85

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html