Re: [PATCH] bpf: avoid old-style declaration warnings

2021-03-22 Thread KP Singh
On Mon, Mar 22, 2021 at 10:52 PM Arnd Bergmann wrote: > > From: Arnd Bergmann > > 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

[PATCH] bpf: avoid old-style declaration warnings

2021-03-22 Thread Arnd Bergmann
From: Arnd Bergmann 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: