diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-04-11 16:34:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-11 21:38:43 +0300 |
commit | 40077e0cf62206ac3c315b6991d8dcddb3703286 (patch) | |
tree | c76dbceda09bc9e807db8217194952b1df4b554b /drivers/s390 | |
parent | be9370a7d8614d1fa54649c75de14458e79b91ec (diff) | |
download | linux-40077e0cf62206ac3c315b6991d8dcddb3703286.tar.xz |
bpf: remove struct bpf_map_type_list
There's no need to have struct bpf_map_type_list since
it just contains a list_head, the type, and the ops
pointer. Since the types are densely packed and not
actually dynamically registered, it's much easier and
smaller to have an array of type->ops pointer. Also
initialize this array statically to remove code needed
to initialize it.
In order to save duplicating the list, move it to the
types header file added by the previous patch and
include it in the same fashion.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions