Re: linux: build faulure: error: "__has_attribute" is not defined

From: Linus Torvalds
Date: Tue Sep 14 2021 - 12:03:12 EST


On Tue, Sep 14, 2021 at 6:42 AM Tetsuo Handa
<penguin-kernel@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Can you tell me the commit ?

Two commits, in fact - both odd cases of "confused code ended up using
the GCC4 #defines despite not being GCC4":

1619b69edce1 ("powerpc/boot: Fix build failure since GCC 4.9 removal")
d0ee23f9d78b ("tools: compiler-gcc.h: Guard error attribute use
with __has_attribute")

hopefully that was all of it.

Linus