Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rqspinlock: Add entry to Makefile, MAINTAINERS

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>

authored by

Kumar Kartikeya Dwivedi and committed by
Alexei Starovoitov
e2082e32 101acd2e

+4 -1
+2
MAINTAINERS
··· 4297 4297 F: kernel/bpf/ 4298 4298 F: kernel/trace/bpf_trace.c 4299 4299 F: lib/buildid.c 4300 + F: arch/*/include/asm/rqspinlock.h 4301 + F: include/asm-generic/rqspinlock.h 4300 4302 F: lib/test_bpf.c 4301 4303 F: net/bpf/ 4302 4304 F: net/core/filter.c
+1
include/asm-generic/Kbuild
··· 45 45 mandatory-y += percpu.h 46 46 mandatory-y += pgalloc.h 47 47 mandatory-y += preempt.h 48 + mandatory-y += rqspinlock.h 48 49 mandatory-y += runtime-const.h 49 50 mandatory-y += rwonce.h 50 51 mandatory-y += sections.h
+1 -1
kernel/bpf/Makefile
··· 14 14 obj-${CONFIG_BPF_LSM} += bpf_inode_storage.o 15 15 obj-$(CONFIG_BPF_SYSCALL) += disasm.o mprog.o 16 16 obj-$(CONFIG_BPF_JIT) += trampoline.o 17 - obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o 17 + obj-$(CONFIG_BPF_SYSCALL) += btf.o memalloc.o rqspinlock.o 18 18 ifeq ($(CONFIG_MMU)$(CONFIG_64BIT),yy) 19 19 obj-$(CONFIG_BPF_SYSCALL) += arena.o range_tree.o 20 20 endif