[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAKwvOdmbnU_RcQrpY3p460-50VQf=fTdH_84tFj=WZUZMX_FhQ@mail.gmail.com>
Date: Wed, 13 Sep 2017 10:26:48 -0700
From: Nick Desaulniers <ndesaulniers@...gle.com>
To: David Miller <davem@...emloft.net>
Cc: yhs@...com, peterz@...radead.org, rostedt@...dmis.org, ast@...com,
daniel@...earbox.net, netdev@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH net] perf/bpf: fix a clang compilation issue
great, thanks!
On Mon, Sep 11, 2017 at 2:28 PM, David Miller <davem@...emloft.net> wrote:
> From: Yonghong Song <yhs@...com>
> 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@...gle.com>
>> Signed-off-by: Yonghong Song <yhs@...com>
>
> Applied.
--
Thanks,
~Nick Desaulniers
Powered by blists - more mailing lists