On 09/10/18 at 09:41pm, kbuild test robot wrote: > include/linux/build_bug.h:69:2: note: in expansion of macro > 'BUILD_BUG_ON_MSG' > BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) > ^~~~~~~~~~~~~~~~ > >> mm/page_alloc.c:6852:2: note: in expansion of macro 'BUILD_BUG_ON' > BUILD_BUG_ON(sizeof(struct page) < min(SZ_1K, PAGE_SIZE/4)); > ^~~~~~~~~~~~
Thanks, below code can mute the compiling warning. Will update and repost. + BUILD_BUG_ON(sizeof(struct page) > min((size_t)SZ_1K, PAGE_SIZE));