diff options
Diffstat (limited to 'kernel/bpf/arraymap.c')
-rw-r--r-- | kernel/bpf/arraymap.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 3d55d95dcf49..6b6f41f0b211 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c | |||
@@ -269,7 +269,7 @@ static const struct bpf_map_ops array_ops = { | |||
269 | .map_delete_elem = array_map_delete_elem, | 269 | .map_delete_elem = array_map_delete_elem, |
270 | }; | 270 | }; |
271 | 271 | ||
272 | static struct bpf_map_type_list array_type __read_mostly = { | 272 | static struct bpf_map_type_list array_type __ro_after_init = { |
273 | .ops = &array_ops, | 273 | .ops = &array_ops, |
274 | .type = BPF_MAP_TYPE_ARRAY, | 274 | .type = BPF_MAP_TYPE_ARRAY, |
275 | }; | 275 | }; |
@@ -283,7 +283,7 @@ static const struct bpf_map_ops percpu_array_ops = { | |||
283 | .map_delete_elem = array_map_delete_elem, | 283 | .map_delete_elem = array_map_delete_elem, |
284 | }; | 284 | }; |
285 | 285 | ||
286 | static struct bpf_map_type_list percpu_array_type __read_mostly = { | 286 | static struct bpf_map_type_list percpu_array_type __ro_after_init = { |
287 | .ops = &percpu_array_ops, | 287 | .ops = &percpu_array_ops, |
288 | .type = BPF_MAP_TYPE_PERCPU_ARRAY, | 288 | .type = BPF_MAP_TYPE_PERCPU_ARRAY, |
289 | }; | 289 | }; |
@@ -409,7 +409,7 @@ static const struct bpf_map_ops prog_array_ops = { | |||
409 | .map_fd_put_ptr = prog_fd_array_put_ptr, | 409 | .map_fd_put_ptr = prog_fd_array_put_ptr, |
410 | }; | 410 | }; |
411 | 411 | ||
412 | static struct bpf_map_type_list prog_array_type __read_mostly = { | 412 | static struct bpf_map_type_list prog_array_type __ro_after_init = { |
413 | .ops = &prog_array_ops, | 413 | .ops = &prog_array_ops, |
414 | .type = BPF_MAP_TYPE_PROG_ARRAY, | 414 | .type = BPF_MAP_TYPE_PROG_ARRAY, |
415 | }; | 415 | }; |
@@ -522,7 +522,7 @@ static const struct bpf_map_ops perf_event_array_ops = { | |||
522 | .map_release = perf_event_fd_array_release, | 522 | .map_release = perf_event_fd_array_release, |
523 | }; | 523 | }; |
524 | 524 | ||
525 | static struct bpf_map_type_list perf_event_array_type __read_mostly = { | 525 | static struct bpf_map_type_list perf_event_array_type __ro_after_init = { |
526 | .ops = &perf_event_array_ops, | 526 | .ops = &perf_event_array_ops, |
527 | .type = BPF_MAP_TYPE_PERF_EVENT_ARRAY, | 527 | .type = BPF_MAP_TYPE_PERF_EVENT_ARRAY, |
528 | }; | 528 | }; |
@@ -564,7 +564,7 @@ static const struct bpf_map_ops cgroup_array_ops = { | |||
564 | .map_fd_put_ptr = cgroup_fd_array_put_ptr, | 564 | .map_fd_put_ptr = cgroup_fd_array_put_ptr, |
565 | }; | 565 | }; |
566 | 566 | ||
567 | static struct bpf_map_type_list cgroup_array_type __read_mostly = { | 567 | static struct bpf_map_type_list cgroup_array_type __ro_after_init = { |
568 | .ops = &cgroup_array_ops, | 568 | .ops = &cgroup_array_ops, |
569 | .type = BPF_MAP_TYPE_CGROUP_ARRAY, | 569 | .type = BPF_MAP_TYPE_CGROUP_ARRAY, |
570 | }; | 570 | }; |