linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [akpm-mm:mm-nonmm-unstable 32/32] ({ BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B
@ 2025-06-08 23:48 kernel test robot
  2025-06-09 16:43 ` Kuan-Wei Chiu
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2025-06-08 23:48 UTC (permalink / raw)
  To: Kuan-Wei Chiu
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Yu-Chun Lin

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
head:   8172857ac52869c411762ce86802d127b0bb7546
commit: 8172857ac52869c411762ce86802d127b0bb7546 [32/32] riscv: optimize gcd() performance on RISC-V without Zbb extension
config: x86_64-buildonly-randconfig-001-20250609 (https://download.01.org/0day-ci/archive/20250609/202506090716.JryOipkx-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250609/202506090716.JryOipkx-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/202506090716.JryOipkx-lkp@intel.com/

All warnings (new ones prefixed by >>):

   clang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]182
   | #defclang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]i
   ne __clang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   raw_cpclang diag: uinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   _read_coclang diag: ninclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]s
   t(pcpclang diag: )include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
>> ({ BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B
   UG(); (tyclang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   peof(clang diag: pinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]c
   p))0; })clang diag:
   include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   |                                            ^
   clang diag: include/linux/build_bug.hinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   :59:21: note: expanded from macro 'BUILD_BUG'
   clang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   clang diag: 59include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes] |
   #defclang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]i
   ne BUILclang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]D
   _BUG() clang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B
   UILclang diag: Dinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   _BUG_clang diag: Oinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   N_MSG(clang diag: 1include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes],
>> "BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B
   UG faileclang diag: dinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]"
   )
   |                     ^
   note: clang diag: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   include/linux/compiler_types.h:565clang diag: :include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]2
   : note: clang diag: expanded from macro 'compiletime_assert'include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
--
   clang diag: 547include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes] |
   __comclang diag: pinclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]i
   letimclang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]e
>> _error(clang diag: minclude/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]s
   g);       clang diag: include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   clang diag:       include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   |                         ^
   clang diag: include/linux/compiler_attributes.h:include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]
   138:56: note: clang diag: expanded from macro '__compiletime_error'include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [akpm-mm:mm-nonmm-unstable 32/32] ({ BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B
  2025-06-08 23:48 [akpm-mm:mm-nonmm-unstable 32/32] ({ BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B kernel test robot
@ 2025-06-09 16:43 ` Kuan-Wei Chiu
  0 siblings, 0 replies; 2+ messages in thread
From: Kuan-Wei Chiu @ 2025-06-09 16:43 UTC (permalink / raw)
  To: kernel test robot
  Cc: llvm, oe-kbuild-all, Andrew Morton, Linux Memory Management List,
	Yu-Chun Lin, Tal Zussman, jserv

On Mon, Jun 09, 2025 at 07:48:46AM +0800, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-nonmm-unstable
> head:   8172857ac52869c411762ce86802d127b0bb7546
> commit: 8172857ac52869c411762ce86802d127b0bb7546 [32/32] riscv: optimize gcd() performance on RISC-V without Zbb extension
> config: x86_64-buildonly-randconfig-001-20250609 (https://download.01.org/0day-ci/archive/20250609/202506090716.JryOipkx-lkp@intel.com/config)
> compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
> rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250609/202506090716.JryOipkx-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/202506090716.JryOipkx-lkp@intel.com/
> 
I wasn't able to reproduce the issue on the latest mm-nonmm-unstable
branch. However, after I manually applied the patch "[PATCH]
compiler_types: Remove unnecessary indirection in compiletime_assert()"
[1] on top of it, the issue appeared.

Since the patch pointed out by the test robot only touches RISC-V code,
and the issue shows up on x86, I believe it's reasonable to conclude
that the dropped compiler_types patch was the cause, rather than the
RISC-V gcd patch.

[1]: https://lore.kernel.org/lkml/20250607-compiletime_assert-v1-1-a8991a9be729@columbia.edu/

Regards,
Kuan-Wei


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-06-09 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-08 23:48 [akpm-mm:mm-nonmm-unstable 32/32] ({ BUILDclang diag: _include/linux/compiler_attributes.h:138:56: warning: attribute 'error' is already applied with different arguments [-Wignored-attributes]B kernel test robot
2025-06-09 16:43 ` Kuan-Wei Chiu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox