Remove unnecessary callbacks that simply return -EOPNOTSUPP for following map operations: - map_peek_elem - map_push_elem - map_pop_elem - map_delete_elem - map_get_next_key These operations are not supported for certain map types and can be handled by generic map code instead of having redundant single-line callbacks. Xiaomeng Zhang (5): bpf: Remove map_peek_elem callbacks with -EOPNOTSUPP bpf: Remove map_push_elem callbacks with -EOPNOTSUPP bpf: Remove map_pop_elem callbacks with -EOPNOTSUPP bpf: Remove map_delete_elem callbacks with -EOPNOTSUPP bpf: Remove map_get_next_key callbacks with -EOPNOTSUPP kernel/bpf/arena.c | 30 ------------------------------ kernel/bpf/bloom_filter.c | 18 ------------------ kernel/bpf/bpf_cgrp_storage.c | 6 ------ kernel/bpf/bpf_inode_storage.c | 7 ------- kernel/bpf/bpf_task_storage.c | 6 ------ kernel/bpf/helpers.c | 20 ++++++++++++++++---- kernel/bpf/ringbuf.c | 15 --------------- kernel/bpf/syscall.c | 30 ++++++++++++++++++++++++------ 8 files changed, 40 insertions(+), 92 deletions(-) -- 2.34.1