BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpf: crypto: fix build when CONFIG_CRYPTO=m
@ 2024-05-01 17:01 Vadim Fedorenko
  2024-05-01 20:40 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Vadim Fedorenko @ 2024-05-01 17:01 UTC (permalink / raw)
  To: Vadim Fedorenko, Jakub Kicinski, Martin KaFai Lau,
	Andrii Nakryiko, Alexei Starovoitov, Mykola Lysenko, Herbert Xu
  Cc: Vadim Fedorenko, netdev, linux-crypto, bpf, kernel test robot

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>
---
 kernel/bpf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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/
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH bpf-next] bpf: crypto: fix build when CONFIG_CRYPTO=m
  2024-05-01 17:01 [PATCH bpf-next] bpf: crypto: fix build when CONFIG_CRYPTO=m Vadim Fedorenko
@ 2024-05-01 20:40 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-01 20:40 UTC (permalink / raw)
  To: Vadim Fedorenko
  Cc: vadim.fedorenko, kuba, martin.lau, andrii, ast, mykolal, herbert,
	netdev, linux-crypto, bpf, lkp

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Martin KaFai Lau <martin.lau@kernel.org>:

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")
> 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>
> 
> [...]

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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-01 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-01 17:01 [PATCH bpf-next] bpf: crypto: fix build when CONFIG_CRYPTO=m Vadim Fedorenko
2024-05-01 20:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox