]> www.infradead.org Git - users/hch/misc.git/commitdiff
rqspinlock: Add entry to Makefile, MAINTAINERS
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sun, 16 Mar 2025 04:05:33 +0000 (21:05 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 19 Mar 2025 15:03:05 +0000 (08:03 -0700)
Ensure that the rqspinlock code is only built when the BPF subsystem is
compiled in. Depending on queued spinlock support, we may or may not end
up building the queued spinlock slowpath, and instead fallback to the
test-and-set implementation. Also add entries to MAINTAINERS file.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250316040541.108729-18-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
MAINTAINERS
include/asm-generic/Kbuild
kernel/bpf/Makefile

index 3864d473f52f2ad61c7b8775f01634bc982a0263..c545cd149cd16152eb2495383781403f866d9e27 100644 (file)
@@ -4297,6 +4297,8 @@ F:        include/uapi/linux/filter.h
 F:     kernel/bpf/
 F:     kernel/trace/bpf_trace.c
 F:     lib/buildid.c
+F:     arch/*/include/asm/rqspinlock.h
+F:     include/asm-generic/rqspinlock.h
 F:     lib/test_bpf.c
 F:     net/bpf/
 F:     net/core/filter.c
index 1b43c3a77012db0722ea7c1164c3970f388f2ed6..8675b7b4ad23ed8485ecb58f0a4a3e7750c6e0a8 100644 (file)
@@ -45,6 +45,7 @@ mandatory-y += pci.h
 mandatory-y += percpu.h
 mandatory-y += pgalloc.h
 mandatory-y += preempt.h
+mandatory-y += rqspinlock.h
 mandatory-y += runtime-const.h
 mandatory-y += rwonce.h
 mandatory-y += sections.h
index 410028633621c1c0c3372510e9d213dfac3b090e..70502f038b921825589293d20fcaae6aef46ce9d 100644 (file)
@@ -14,7 +14,7 @@ obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o bpf_task_storage.o
 obj-${CONFIG_BPF_LSM}    += bpf_inode_storage.o
 obj-$(CONFIG_BPF_SYSCALL) += disasm.o mprog.o
 obj-$(CONFIG_BPF_JIT) += trampoline.o
-obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o
+obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o rqspinlock.o
 ifeq ($(CONFIG_MMU)$(CONFIG_64BIT),yy)
 obj-$(CONFIG_BPF_SYSCALL) += arena.o range_tree.o
 endif