Thread (3 messages) flat view 3 messages, 3 authors, 2017-09-13

Re: [PATCH net] perf/bpf: fix a clang compilation issue

From: Nick Desaulniers <ndesaulniers@google.com>
Date: 2017-09-13 17:26:51

great, thanks!

On Mon, Sep 11, 2017 at 2:28 PM, David Miller [off-list ref] wrote:
From: Yonghong Song <redacted>
Date: Thu, 7 Sep 2017 18:36:15 -0700
quoted
clang does not support variable length array for structure member.
It has the following error during compilation:

kernel/trace/trace_syscalls.c:568:17: error: fields must have a constant size:
'variable length array in structure' extension will never be supported
                unsigned long args[sys_data->nb_args];
                              ^

The fix is to use a fixed array length instead.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Yonghong Song <redacted>
Applied.


-- 
Thanks,
~Nick Desaulniers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help