]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Avoid old-style declaration warnings
authorArnd Bergmann <arnd@arndb.de>
Mon, 22 Mar 2021 21:51:51 +0000 (22:51 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 24 Mar 2021 16:32:28 +0000 (09:32 -0700)
commit5f98c4a4ab23889ee671bd6800c716d1b1373d0c
tree87086ab6710d10e0a0deb12d85bcd84c3f34ae56
parente7d3c701cf515298866f2b093f5084b04ce2927b
bpf: Avoid old-style declaration warnings

gcc -Wextra wants type modifiers in the normal order:

kernel/bpf/bpf_lsm.c:70:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
   70 | const static struct bpf_func_proto bpf_bprm_opts_set_proto = {
      | ^~~~~
kernel/bpf/bpf_lsm.c:91:1: error: 'static' is not at beginning of declaration [-Werror=old-style-declaration]
   91 | const static struct bpf_func_proto bpf_ima_inode_hash_proto = {
      | ^~~~~

Fixes: 61db6b0d6088 ("bpf: Add bpf_bprm_opts_set helper")
Fixes: 4655c3bf185b ("bpf: Add a BPF helper for getting the IMA hash of an inode")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210322215201.1097281-1-arnd@kernel.org
kernel/bpf/bpf_lsm.c