Dear Yu Zhao,
I
don't know if it's a known issue with the 5.12 kernel released
[9f4ad9e]:
LRU_GEN v2 & v5.12 final:
In function ‘nd_pfn_init’,
inlined from ‘nvdimm_setup_pfn’ at drivers/nvdimm/pfn_devs.c:842:7:
././include/linux/compiler_types.h:320:38: error: call to
‘__compiletime_assert_349’ declared with attribute error: BUILD_BUG_ON
failed: sizeof(struct page) > MAX_STRUCT_PAGE_SIZE
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
././include/linux/compiler_types.h:301:4: note: in definition of macro ‘__compiletime_assert’
301 | prefix ## suffix(); \
| ^~~~~~
././include/linux/compiler_types.h:320:2: note: in expansion of macro ‘_compiletime_assert’
320 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #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’
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
drivers/nvdimm/pfn_devs.c:794:3: note: in expansion of macro ‘BUILD_BUG_ON’
794 | BUILD_BUG_ON(sizeof(struct page) > MAX_STRUCT_PAGE_SIZE);
| ^~~~~~~~~~~~
make[5]: *** [scripts/Makefile.build:271: drivers/nvdimm/pfn_devs.o] Error 1
make[4]: *** [scripts/Makefile.build:514: drivers/nvdimm] Error 2
make[4]: *** Waiting for unfinished jobs....
Grateful,
Alexandre Frade