[5.15-rc1][PPC][bisected 6d2ef226] mainline build breaks at ./include/linux/compiler_attributes.h:62:5: warning: "__has_attribute"
Stephen Rothwell
sfr at canb.auug.org.au
Tue Sep 14 16:22:23 AEST 2021
Hi Abdul,
On Tue, 14 Sep 2021 11:39:44 +0530 Abdul Haleem <abdhalee at linux.vnet.ibm.com> wrote:
>
> Today's mainline kernel fails to compile on my powerpc box with below errors
>
> ././include/linux/compiler_attributes.h:62:5: warning: "__has_attribute" is not defined, evaluates to 0 [-Wundef]
> #if __has_attribute(__assume_aligned__)
> ^~~~~~~~~~~~~~~
> ././include/linux/compiler_attributes.h:62:20: error: missing binary operator before token "("
> #if __has_attribute(__assume_aligned__)
> ^
> ././include/linux/compiler_attributes.h:88:5: warning: "__has_attribute" is not defined, evaluates to 0 [-Wundef]
> #if __has_attribute(__copy__)
> ^~~~~~~~~~~~~~~
> ././include/linux/compiler_attributes.h:88:20: error: missing binary operator before token "("
> #if __has_attribute(__copy__)
>
> Kernel builds fine when below patch is reverted
>
> commit 6d2ef22 : compiler_attributes.h: drop __has_attribute() support for gcc4
Thanks for your report.
This is known and being addressed.
--
Cheers,
Stephen Rothwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20210914/7410f454/attachment.sig>
More information about the Linuxppc-dev
mailing list