From: kernel test robot <lkp@intel.com>
To: Justin Stitt <justinstitt@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Kees Cook <kees@kernel.org>
Subject: [kees:dev/v7.0-rc2/obt 2/4] include/linux/compiler_attributes.h:409:10: error: '__trap' macro redefined
Date: Wed, 25 Mar 2026 06:45:14 +0800 [thread overview]
Message-ID: <202603250654.OxFzRiGv-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git dev/v7.0-rc2/obt
head: 537858cd27d509ec0dedfa4b96bc1d0e461367b1
commit: 368a623ca334a5de414be74df0471266c5985152 [2/4] compiler_attributes: Add overflow_behavior macros __wrap and __trap
config: powerpc64-randconfig-001-20260325 (https://download.01.org/0day-ci/archive/20260325/202603250654.OxFzRiGv-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 054e11d1a17e5ba88bb1a8ef32fad3346e80b186)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603250654.OxFzRiGv-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603250654.OxFzRiGv-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from <built-in>:3:
In file included from include/linux/compiler_types.h:88:
>> include/linux/compiler_attributes.h:409:10: error: '__trap' macro redefined [-Werror,-Wmacro-redefined]
409 | # define __trap
| ^
<built-in>:406:9: note: previous definition is here
406 | #define __trap __builtin_ppc_trap
| ^
1 error generated.
vim +/__trap +409 include/linux/compiler_attributes.h
398
399 /*
400 * Optional: only supported by Clang with -Xclang -experimental-foverflow-behavior-types
401 * passed via CONFIG_UBSAN_INTEGER_WRAP
402 *
403 * clang: https://clang.llvm.org/docs/OverflowBehaviorTypes.html
404 */
405 #if __has_attribute(overflow_behavior) && defined(INTEGER_WRAP)
406 # define __trap __attribute__((overflow_behavior(trap)))
407 # define __wrap __attribute__((overflow_behavior(wrap)))
408 #else
> 409 # define __trap
410 # define __wrap
411 #endif
412
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-24 22:45 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=202603250654.OxFzRiGv-lkp@intel.com \
--to=lkp@intel.com \
--cc=justinstitt@google.com \
--cc=kees@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox