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

- From: David Miller \<davem@davemloft.net\>
- Date: 2017-09-11 21:28:59 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/09/11065907
- Thread: https://ratatoskr.run/netdev/2017/09/11065755/t.md

```text
From: Yonghong Song <redacted>
Date: Thu, 7 Sep 2017 18:36:15 -0700

> 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.
```
