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 = { | ^~~~~
Unified · Split
| @@ -67,7 +67,7 @@ BPF_CALL_2(bpf_bprm_opts_set, struct linux_binprm *, bprm, u64, flags) · 66 unmodified lines | ||
| 67 | 67 | |
| 68 | 68 | BTF_ID_LIST_SINGLE(bpf_bprm_opts_set_btf_ids, struct, linux_binprm) |
| 69 | 69 | |
| 70 | −const static struct bpf_func_proto bpf_bprm_opts_set_proto = { | |
| 70 | +static const struct bpf_func_proto bpf_bprm_opts_set_proto = { | |
| 71 | 71 | .func = bpf_bprm_opts_set, |
| 72 | 72 | .gpl_only = false, |
| 73 | 73 | .ret_type = RET_INTEGER, |
| @@ -88,7 +88,7 @@ static bool bpf_ima_inode_hash_allowed(const struct bpf_prog *prog) · 14 unmodified lines | ||
| 88 | 88 | |
| 89 | 89 | BTF_ID_LIST_SINGLE(bpf_ima_inode_hash_btf_ids, struct, inode) |
| 90 | 90 | |
| 91 | −const static struct bpf_func_proto bpf_ima_inode_hash_proto = { | |
| 91 | +static const struct bpf_func_proto bpf_ima_inode_hash_proto = { | |
| 92 | 92 | .func = bpf_ima_inode_hash, |
| 93 | 93 | .gpl_only = false, |
| 94 | 94 | .ret_type = RET_INTEGER, |