Messages in this thread | | | Date | Tue, 11 Sep 2018 15:47:33 +0800 | From | Baoquan He <> | Subject | Re: [PATCH v2 3/3] mm: Add build time sanity chcek for struct page size |
| |
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));
| |