aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/stackmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/stackmap.c')
-rw-r--r--kernel/bpf/stackmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/stackmap.c b/kernel/bpf/stackmap.c
index be8519148c25..22aa45cd0324 100644
--- a/kernel/bpf/stackmap.c
+++ b/kernel/bpf/stackmap.c
@@ -273,7 +273,7 @@ static const struct bpf_map_ops stack_map_ops = {
273 .map_delete_elem = stack_map_delete_elem, 273 .map_delete_elem = stack_map_delete_elem,
274}; 274};
275 275
276static struct bpf_map_type_list stack_map_type __read_mostly = { 276static struct bpf_map_type_list stack_map_type __ro_after_init = {
277 .ops = &stack_map_ops, 277 .ops = &stack_map_ops,
278 .type = BPF_MAP_TYPE_STACK_TRACE, 278 .type = BPF_MAP_TYPE_STACK_TRACE,
279}; 279};