Skip to content

Commit e2082e3

Browse files
kkdwivediAlexei Starovoitov
authored andcommitted
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>
1 parent 101acd2 commit e2082e3

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4297,6 +4297,8 @@ F: include/uapi/linux/filter.h
42974297
F: kernel/bpf/
42984298
F: kernel/trace/bpf_trace.c
42994299
F: lib/buildid.c
4300+
F: arch/*/include/asm/rqspinlock.h
4301+
F: include/asm-generic/rqspinlock.h
43004302
F: lib/test_bpf.c
43014303
F: net/bpf/
43024304
F: net/core/filter.c

include/asm-generic/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ mandatory-y += pci.h
4545
mandatory-y += percpu.h
4646
mandatory-y += pgalloc.h
4747
mandatory-y += preempt.h
48+
mandatory-y += rqspinlock.h
4849
mandatory-y += runtime-const.h
4950
mandatory-y += rwonce.h
5051
mandatory-y += sections.h

kernel/bpf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ obj-$(CONFIG_BPF_SYSCALL) += bpf_local_storage.o bpf_task_storage.o
1414
obj-${CONFIG_BPF_LSM} += bpf_inode_storage.o
1515
obj-$(CONFIG_BPF_SYSCALL) += disasm.o mprog.o
1616
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
1818
ifeq ($(CONFIG_MMU)$(CONFIG_64BIT),yy)
1919
obj-$(CONFIG_BPF_SYSCALL) += arena.o range_tree.o
2020
endif

0 commit comments

Comments
 (0)