[PATCH v4 2/8] powerpc/mm/hash64: Map all the kernel regions in the same 0xc range
kbuild test robot
lkp at intel.com
Thu Apr 18 08:27:40 AEST 2019
Hi "Aneesh,
I love your patch! Yet something to improve:
[auto build test ERROR on powerpc/next]
[also build test ERROR on v5.1-rc5 next-20190417]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Aneesh-Kumar-K-V/Update-hash-MMU-kernel-mapping-to-be-in-sync-with-radix/20190417-223135
base: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-pseries_defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=7.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:11:0,
from arch/powerpc/mm/pgtable-radix.c:14:
arch/powerpc/mm/pgtable-radix.c: In function '__map_kernel_page':
>> include/linux/compiler.h:344:38: error: call to '__compiletime_assert_139' declared with attribute error: BUILD_BUG_ON failed: RADIX_KERN_MAP_SIZE != MAX_EA_BITS_PER_CONTEXT
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:325:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:344:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#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'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
>> arch/powerpc/mm/pgtable-radix.c:139:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(RADIX_KERN_MAP_SIZE != MAX_EA_BITS_PER_CONTEXT);
^~~~~~~~~~~~
--
In file included from include/linux/kernel.h:11:0,
from arch/powerpc//mm/pgtable-radix.c:14:
arch/powerpc//mm/pgtable-radix.c: In function '__map_kernel_page':
>> include/linux/compiler.h:344:38: error: call to '__compiletime_assert_139' declared with attribute error: BUILD_BUG_ON failed: RADIX_KERN_MAP_SIZE != MAX_EA_BITS_PER_CONTEXT
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:325:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:344:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#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'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
arch/powerpc//mm/pgtable-radix.c:139:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(RADIX_KERN_MAP_SIZE != MAX_EA_BITS_PER_CONTEXT);
^~~~~~~~~~~~
vim +/__compiletime_assert_139 +344 include/linux/compiler.h
9a8ab1c3 Daniel Santos 2013-02-21 330
9a8ab1c3 Daniel Santos 2013-02-21 331 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c3 Daniel Santos 2013-02-21 332 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c3 Daniel Santos 2013-02-21 333
9a8ab1c3 Daniel Santos 2013-02-21 334 /**
9a8ab1c3 Daniel Santos 2013-02-21 335 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c3 Daniel Santos 2013-02-21 336 * @condition: a compile-time constant condition to check
9a8ab1c3 Daniel Santos 2013-02-21 337 * @msg: a message to emit if condition is false
9a8ab1c3 Daniel Santos 2013-02-21 338 *
9a8ab1c3 Daniel Santos 2013-02-21 339 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c3 Daniel Santos 2013-02-21 340 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c3 Daniel Santos 2013-02-21 341 * compiler has support to do so.
9a8ab1c3 Daniel Santos 2013-02-21 342 */
9a8ab1c3 Daniel Santos 2013-02-21 343 #define compiletime_assert(condition, msg) \
9a8ab1c3 Daniel Santos 2013-02-21 @344 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c3 Daniel Santos 2013-02-21 345
:::::: The code at line 344 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos at pobox.com>
:::::: CC: Linus Torvalds <torvalds at linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 22699 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20190418/c7943522/attachment-0001.gz>
More information about the Linuxppc-dev
mailing list