aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/hashtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/hashtab.c')
-rw-r--r--kernel/bpf/hashtab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c
index a753bbe7df0a..3ea87fb19a94 100644
--- a/kernel/bpf/hashtab.c
+++ b/kernel/bpf/hashtab.c
@@ -1023,7 +1023,7 @@ static const struct bpf_map_ops htab_ops = {
1023 .map_delete_elem = htab_map_delete_elem, 1023 .map_delete_elem = htab_map_delete_elem,
1024}; 1024};
1025 1025
1026static struct bpf_map_type_list htab_type __read_mostly = { 1026static struct bpf_map_type_list htab_type __ro_after_init = {
1027 .ops = &htab_ops, 1027 .ops = &htab_ops,
1028 .type = BPF_MAP_TYPE_HASH, 1028 .type = BPF_MAP_TYPE_HASH,
1029}; 1029};
@@ -1037,7 +1037,7 @@ static const struct bpf_map_ops htab_lru_ops = {
1037 .map_delete_elem = htab_lru_map_delete_elem, 1037 .map_delete_elem = htab_lru_map_delete_elem,
1038}; 1038};
1039 1039
1040static struct bpf_map_type_list htab_lru_type __read_mostly = { 1040static struct bpf_map_type_list htab_lru_type __ro_after_init = {
1041 .ops = &htab_lru_ops, 1041 .ops = &htab_lru_ops,
1042 .type = BPF_MAP_TYPE_LRU_HASH, 1042 .type = BPF_MAP_TYPE_LRU_HASH,
1043}; 1043};
@@ -1124,7 +1124,7 @@ static const struct bpf_map_ops htab_percpu_ops = {
1124 .map_delete_elem = htab_map_delete_elem, 1124 .map_delete_elem = htab_map_delete_elem,
1125}; 1125};
1126 1126
1127static struct bpf_map_type_list htab_percpu_type __read_mostly = { 1127static struct bpf_map_type_list htab_percpu_type __ro_after_init = {
1128 .ops = &htab_percpu_ops, 1128 .ops = &htab_percpu_ops,
1129 .type = BPF_MAP_TYPE_PERCPU_HASH, 1129 .type = BPF_MAP_TYPE_PERCPU_HASH,
1130}; 1130};
@@ -1138,7 +1138,7 @@ static const struct bpf_map_ops htab_lru_percpu_ops = {
1138 .map_delete_elem = htab_lru_map_delete_elem, 1138 .map_delete_elem = htab_lru_map_delete_elem,
1139}; 1139};
1140 1140
1141static struct bpf_map_type_list htab_lru_percpu_type __read_mostly = { 1141static struct bpf_map_type_list htab_lru_percpu_type __ro_after_init = {
1142 .ops = &htab_lru_percpu_ops, 1142 .ops = &htab_lru_percpu_ops,
1143 .type = BPF_MAP_TYPE_LRU_PERCPU_HASH, 1143 .type = BPF_MAP_TYPE_LRU_PERCPU_HASH,
1144}; 1144};