All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [peterz-queue:x86/entry 5/5] include/linux/compiler.h:392:38: error: call to '__compiletime_assert_211' declared with attribute error: BUILD_BUG_ON failed: N_EXCEPTION_STACKS != 6
Date: Sat, 30 May 2020 01:10:04 +0800	[thread overview]
Message-ID: <202005300155.ZIb6HNHb%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5141 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/entry
head:   d4a2e181448920eddbeb53a79df45e1d7cdddfee
commit: d4a2e181448920eddbeb53a79df45e1d7cdddfee [5/5] x86/entry: Remove DBn stacks
config: x86_64-defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
        git checkout d4a2e181448920eddbeb53a79df45e1d7cdddfee
        # 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: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/kallsyms.h:10,
from arch/x86/kernel/dumpstack_64.c:7:
arch/x86/kernel/dumpstack_64.c: In function 'stack_type_name':
>> include/linux/compiler.h:392:38: error: call to '__compiletime_assert_211' declared with attribute error: BUILD_BUG_ON failed: N_EXCEPTION_STACKS != 6
392 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
|                                      ^
include/linux/compiler.h:373:4: note: in definition of macro '__compiletime_assert'
373 |    prefix ## suffix();             |    ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 |  _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)
|  ^~~~~~~~~~~~~~~~
>> arch/x86/kernel/dumpstack_64.c:31:2: note: in expansion of macro 'BUILD_BUG_ON'
31 |  BUILD_BUG_ON(N_EXCEPTION_STACKS != 6);
|  ^~~~~~~~~~~~
In function 'in_exception_stack',
inlined from 'get_stack_info' at arch/x86/kernel/dumpstack_64.c:164:6:
include/linux/compiler.h:392:38: error: call to '__compiletime_assert_212' declared with attribute error: BUILD_BUG_ON failed: N_EXCEPTION_STACKS != 6
392 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
|                                      ^
include/linux/compiler.h:373:4: note: in definition of macro '__compiletime_assert'
373 |    prefix ## suffix();             |    ^~~~~~
include/linux/compiler.h:392:2: note: in expansion of macro '_compiletime_assert'
392 |  _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)
|  ^~~~~~~~~~~~~~~~
arch/x86/kernel/dumpstack_64.c:91:2: note: in expansion of macro 'BUILD_BUG_ON'
91 |  BUILD_BUG_ON(N_EXCEPTION_STACKS != 6);
|  ^~~~~~~~~~~~

vim +/__compiletime_assert_211 +392 include/linux/compiler.h

9a8ab1c39970a4 Daniel Santos 2013-02-21  378  
9a8ab1c39970a4 Daniel Santos 2013-02-21  379  #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21  380  	__compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21  381  
9a8ab1c39970a4 Daniel Santos 2013-02-21  382  /**
9a8ab1c39970a4 Daniel Santos 2013-02-21  383   * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21  384   * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21  385   * @msg:       a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21  386   *
9a8ab1c39970a4 Daniel Santos 2013-02-21  387   * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21  388   * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21  389   * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21  390   */
9a8ab1c39970a4 Daniel Santos 2013-02-21  391  #define compiletime_assert(condition, msg) \
af9c5d2e3b3558 Vegard Nossum 2020-04-06 @392  	_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
9a8ab1c39970a4 Daniel Santos 2013-02-21  393  

:::::: The code at line 392 was first introduced by commit
:::::: af9c5d2e3b355854ff0e4acfbfbfadcd5198a349 compiler.h: fix error in BUILD_BUG_ON() reporting

:::::: TO: Vegard Nossum <vegard.nossum@oracle.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29356 bytes --]

                 reply	other threads:[~2020-05-29 17:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202005300155.ZIb6HNHb%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.