tree:
https://android.googlesource.com/kernel/goldfish android-3.18
head: e4742bb317218e1c75c86aa765e50cdd06d2c007
commit: a4375387b1009a40dca013d11261c2fbafa5ce00 [106/187] fs: add a VALID_OPEN_FLAGS
config: alpha-defconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 5.5.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add android-goldfish
https://android.googlesource.com/kernel/goldfish
git fetch --no-tags android-goldfish android-3.18
git checkout a4375387b1009a40dca013d11261c2fbafa5ce00
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-5.5.0 make.cross ARCH=alpha
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/linux/mempolicy.h:14:0,
from include/linux/shmem_fs.h:6,
from fs/fcntl.c:24:
include/linux/pagemap.h: In function 'fault_in_multipages_readable':
include/linux/pagemap.h:633:16: warning: variable 'c' set but not used
[-Wunused-but-set-variable]
volatile char c;
^
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/linux/syscalls.h:70,
from fs/fcntl.c:7:
fs/fcntl.c: In function 'fcntl_init':
> include/linux/compiler.h:462:38: error: call to
'__compiletime_assert_24' declared with attribute error: BUILD_BUG_ON failed: 21 -
1 != HWEIGHT32( (VALID_OPEN_FLAGS & ~(O_NONBLOCK | O_NDELAY)) | __FMODE_EXEC |
__FMODE_NONOTIFY)
_compiletime_assert(condition, msg, __compiletime_assert_,
__COUNTER__)
^
include/linux/compiler.h:445:4: note: in definition of macro
'__compiletime_assert'
prefix ## suffix(); \
^
include/linux/compiler.h:462:2: note: in expansion of macro
'_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/bug.h:50:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/bug.h:74:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
fs/fcntl.c:747:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(21 - 1 /* for O_RDONLY being 0 */ !=
^
vim +/__compiletime_assert_24 +462 include/linux/compiler.h
c361d3e54364d1 Daniel Santos 2013-02-21 439
9a8ab1c39970a4 Daniel Santos 2013-02-21 440 #define __compiletime_assert(condition, msg,
prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 441 do { \
9a8ab1c39970a4 Daniel Santos 2013-02-21 442 bool __cond = !(condition); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 443 extern void prefix ## suffix(void)
__compiletime_error(msg); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 444 if (__cond) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 445 prefix ## suffix(); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 446 __compiletime_error_fallback(__cond); \
9a8ab1c39970a4 Daniel Santos 2013-02-21 447 } while (0)
9a8ab1c39970a4 Daniel Santos 2013-02-21 448
9a8ab1c39970a4 Daniel Santos 2013-02-21 449 #define _compiletime_assert(condition, msg,
prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 450 __compiletime_assert(condition, msg,
prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 451
9a8ab1c39970a4 Daniel Santos 2013-02-21 452 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 453 * compiletime_assert - break build and emit
msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 454 * @condition: a compile-time constant
condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 455 * @msg: a message to emit if
condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 456 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 457 * In tradition of POSIX assert, this macro
will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 458 * supplied condition is *false*, emitting
the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 459 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 460 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 461 #define compiletime_assert(condition, msg)
\
6c0c303e5d07e1 Vegard Nossum 2020-04-06 @462 _compiletime_assert(condition, msg,
__compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 463
:::::: The code at line 462 was first introduced by commit
:::::: 6c0c303e5d07e1af6ff4fca1be7e32f97186c42a compiler.h: fix error in BUILD_BUG_ON()
reporting
:::::: TO: Vegard Nossum <vegard.nossum(a)oracle.com>
:::::: CC: Lee Jones <lee.jones(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org