Re: "arm64: vdso: Substitute gettimeofday() with C implementation" breaks clang build

From: Nick Desaulniers
Date: Tue Jun 25 2019 - 12:27:06 EST


On Tue, Jun 25, 2019 at 7:54 AM Vincenzo Frascino
<vincenzo.frascino@xxxxxxx> wrote:
>
> Hi Qian,
>
> ...
>
> >
> > but clang 7.0 is still use in many distros by default, so maybe this commit can
> > be fixed by adding a conditional check to use "small" if clang version < 8.0.
> >
>
> Could you please verify that the patch below works for you?

Should it be checking against CONFIG_CLANG_VERSION, or better yet be
using cc-option macro?
--
Thanks,
~Nick Desaulniers