tree:
https://android.googlesource.com/kernel/common android12-5.4
head: 50c92ebdfb558caa5bfc6a0f7f76958b3d9ecf85
commit: 35e191ee5e0d532bd77882c4fe7ed95bffb9793e [2/5] BACKPORT: mm: speedup mremap on 1GB
or larger regions
config: x86_64-randconfig-c002-20210215 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout 35e191ee5e0d532bd77882c4fe7ed95bffb9793e
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:5,
from arch/x86/include/asm/bug.h:83,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/mremap.c:11:
mm/mremap.c: In function 'get_extent':
> include/linux/compiler.h:364:38: error: call to
'__compiletime_assert_176' declared with attribute error: BUILD_BUG failed
364 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^
include/linux/compiler.h:345:4: note: in definition of macro
'__compiletime_assert'
345 | prefix ## suffix(); \
| ^~~~~~
include/linux/compiler.h:364:2: note: in expansion of macro
'_compiletime_assert'
364 | _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:59:21: note: in expansion of macro
'BUILD_BUG_ON_MSG'
59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed")
| ^~~~~~~~~~~~~~~~
mm/mremap.c:341:3: note: in expansion of macro 'BUILD_BUG'
341 | BUILD_BUG();
| ^~~~~~~~~
vim +/__compiletime_assert_176 +364 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 350
9a8ab1c39970a4 Daniel Santos 2013-02-21 351 #define _compiletime_assert(condition, msg,
prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 352 __compiletime_assert(condition, msg,
prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 353
9a8ab1c39970a4 Daniel Santos 2013-02-21 354 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 355 * compiletime_assert - break build and emit
msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 356 * @condition: a compile-time constant
condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 357 * @msg: a message to emit if
condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 358 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 359 * In tradition of POSIX assert, this macro
will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 360 * supplied condition is *false*, emitting
the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 361 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 362 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 363 #define compiletime_assert(condition, msg)
\
3910babeac1ab0 Vegard Nossum 2020-04-06 @364 _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 365
:::::: The code at line 364 was first introduced by commit
:::::: 3910babeac1ab031f4e178042cbd1af9a9a0ec51 compiler.h: fix error in BUILD_BUG_ON()
reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org