Re: linux-next: Tree for May 13 (mm/page_alloc.c, <linux/mm.h>: sizeof(struct page))

From: Randy Dunlap
Date: Thu May 13 2021 - 13:29:58 EST


On 5/12/21 10:44 PM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20210512:
>

on x86_64:

In function ‘__mm_zero_struct_page.isra.75’,
inlined from ‘__init_single_page.isra.76’ at ../mm/page_alloc.c:1494:2:
./../include/linux/compiler_types.h:328:38: error: call to ‘__compiletime_assert_162’ declared with attribute error: BUILD_BUG_ON failed: sizeof(struct page) > 80
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
./../include/linux/compiler_types.h:309:4: note: in definition of macro ‘__compiletime_assert’
prefix ## suffix(); \
^~~~~~
./../include/linux/compiler_types.h:328:2: note: in expansion of macro ‘_compiletime_assert’
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
../include/linux/build_bug.h:50:2: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
../include/linux/mm.h:169:2: note: in expansion of macro ‘BUILD_BUG_ON’
BUILD_BUG_ON(sizeof(struct page) > 80);
^~~~~~~~~~~~


Full randconfig file is attached.

$ gcc --version
gcc (SUSE Linux) 7.5.0


--
~Randy
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

Attachment: config-r9309.gz
Description: application/gzip