aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/lpm_trie.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/bpf/lpm_trie.c')
-rw-r--r--kernel/bpf/lpm_trie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c
index e0f6a0bd279b..8bfe0afaee10 100644
--- a/kernel/bpf/lpm_trie.c
+++ b/kernel/bpf/lpm_trie.c
@@ -508,7 +508,7 @@ static const struct bpf_map_ops trie_ops = {
508 .map_delete_elem = trie_delete_elem, 508 .map_delete_elem = trie_delete_elem,
509}; 509};
510 510
511static struct bpf_map_type_list trie_type __read_mostly = { 511static struct bpf_map_type_list trie_type __ro_after_init = {
512 .ops = &trie_ops, 512 .ops = &trie_ops,
513 .type = BPF_MAP_TYPE_LPM_TRIE, 513 .type = BPF_MAP_TYPE_LPM_TRIE,
514}; 514};