[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201220449.6A30CSDa-lkp@intel.com>
Date: Sat, 22 Jan 2022 04:22:14 +0800
From: kernel test robot <lkp@...el.com>
To: Mike Rapoport <rppt@...ux.ibm.com>
Cc: kbuild-all@...ts.01.org, Mike Rapoport <rppt@...nel.org>,
linux-kernel@...r.kernel.org
Subject: [rppt:gfp-unmapped/v0 1/3] include/linux/compiler_types.h:346:38:
error: call to '__compiletime_assert_622' declared with attribute error:
BUILD_BUG_ON failed: pageblock_order != PMD_ORDER
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git gfp-unmapped/v0
head: 53acd000a0eef1457aaa4930c0d2003d7785f799
commit: 253f456a5cb652a16a59cc4ac2e18669997d79cd [1/3] mm/page_alloc: introduce __GFP_UNMAPPED and MIGRETE_UNMAPPED
config: x86_64-randconfig-a012-20220117 (https://download.01.org/0day-ci/archive/20220122/202201220449.6A30CSDa-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git/commit/?id=253f456a5cb652a16a59cc4ac2e18669997d79cd
git remote add rppt https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git
git fetch --no-tags rppt gfp-unmapped/v0
git checkout 253f456a5cb652a16a59cc4ac2e18669997d79cd
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
mm/page_alloc.c:3955:15: warning: no previous prototype for 'should_fail_alloc_page' [-Wmissing-prototypes]
3955 | noinline bool should_fail_alloc_page(gfp_t gfp_mask, unsigned int order)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from <command-line>:
In function 'set_pageblock_unmapped',
inlined from 'get_page_from_freelist' at mm/page_alloc.c:4301:8:
>> include/linux/compiler_types.h:346:38: error: call to '__compiletime_assert_622' declared with attribute error: BUILD_BUG_ON failed: pageblock_order != PMD_ORDER
346 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler_types.h:327:4: note: in definition of macro '__compiletime_assert'
327 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler_types.h:346:2: note: in expansion of macro '_compiletime_assert'
346 | _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)
| ^~~~~~~~~~~~~~~~
mm/page_alloc.c:2660:2: note: in expansion of macro 'BUILD_BUG_ON'
2660 | BUILD_BUG_ON(pageblock_order != PMD_ORDER);
| ^~~~~~~~~~~~
vim +/__compiletime_assert_622 +346 include/linux/compiler_types.h
eb5c2d4b45e3d2 Will Deacon 2020-07-21 332
eb5c2d4b45e3d2 Will Deacon 2020-07-21 333 #define _compiletime_assert(condition, msg, prefix, suffix) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 334 __compiletime_assert(condition, msg, prefix, suffix)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 335
eb5c2d4b45e3d2 Will Deacon 2020-07-21 336 /**
eb5c2d4b45e3d2 Will Deacon 2020-07-21 337 * compiletime_assert - break build and emit msg if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 338 * @condition: a compile-time constant condition to check
eb5c2d4b45e3d2 Will Deacon 2020-07-21 339 * @msg: a message to emit if condition is false
eb5c2d4b45e3d2 Will Deacon 2020-07-21 340 *
eb5c2d4b45e3d2 Will Deacon 2020-07-21 341 * In tradition of POSIX assert, this macro will break the build if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 342 * supplied condition is *false*, emitting the supplied error message if the
eb5c2d4b45e3d2 Will Deacon 2020-07-21 343 * compiler has support to do so.
eb5c2d4b45e3d2 Will Deacon 2020-07-21 344 */
eb5c2d4b45e3d2 Will Deacon 2020-07-21 345 #define compiletime_assert(condition, msg) \
eb5c2d4b45e3d2 Will Deacon 2020-07-21 @346 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
eb5c2d4b45e3d2 Will Deacon 2020-07-21 347
:::::: The code at line 346 was first introduced by commit
:::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h
:::::: TO: Will Deacon <will@...nel.org>
:::::: CC: Will Deacon <will@...nel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists