Re: [PATCH v2 3/3] mm: Add build time sanity chcek for struct page size

From: Baoquan He
Date: Tue Sep 11 2018 - 03:47:41 EST


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));