Re: [powerpc] Build failure include/linux/compiler_types.h __alloc_size__ (next-20220928)

From: Kees Cook
Date: Thu Sep 29 2022 - 04:17:49 EST


On Thu, Sep 29, 2022 at 11:49:28AM +0530, Sachin Sant wrote:
> Linux-next 6.0.0-rc7-next-20220928 fails to build on powerpc with
> following error:
>
> make -j 17 -s && make modules_install && make install
> In file included from <command-line>:
> ./include/linux/percpu.h: In function '__alloc_reserved_percpu':
> ././include/linux/compiler_types.h:279:30: error: expected declaration specifiers before '__alloc_size__'
> #define __alloc_size(x, ...) __alloc_size__(x, ## __VA_ARGS__) __malloc
> ^~~~~~~~~~~~~~

Apologies for the breakage! This should be fixed by:

https://lore.kernel.org/lkml/20220929081642.1932200-1-keescook@xxxxxxxxxxxx

--
Kees Cook