From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 409ADC6FD18 for ; Sat, 4 Mar 2023 14:24:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C14C6B0072; Sat, 4 Mar 2023 09:24:02 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 672466B0073; Sat, 4 Mar 2023 09:24:02 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 538976B0074; Sat, 4 Mar 2023 09:24:02 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 441B76B0072 for ; Sat, 4 Mar 2023 09:24:02 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id EF73F161191 for ; Sat, 4 Mar 2023 14:24:01 +0000 (UTC) X-FDA: 80531435082.10.9763A17 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by imf05.hostedemail.com (Postfix) with ESMTP id 9600A100005 for ; Sat, 4 Mar 2023 14:23:58 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b31Nw9L3; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1677939839; a=rsa-sha256; cv=none; b=cJb29EHq2oHY3YaZ+pUteWBzZHo1zNXKZjlDfPuAQNUexWLB94GyjXqHTQlVDsRdW9tbl3 Ys2AzXbRCbr7GdnnY2YN3lXsUou0HAyLsMGBMPTFZ4fgkkeBRPQOPVPsfJ1uzK4FLYt6NY 8oYi4Je8JVxxxh3uoGw/oXfgTYRfAOg= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=b31Nw9L3; spf=pass (imf05.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1677939839; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=XYC7GypIP1lwPo2QutkDK8noOxgLdnaYshtXw6YjNhI=; b=VCdRtFjJI+As7ON+oOj75TrX4ZxsG+BgOVqnl4nRgrJWWDu9biAp/VZPJNj53hECtMeZ2e viJLUpgq7kHMwhQVDjn2T7d1ucPFGkW8y7vDOjRgF9IErOvPf6iLUNjSTApvtHvSFCjYBy jQln2v/hKL94RUkh7fGCLhU8i6QNabQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677939838; x=1709475838; h=date:from:to:cc:subject:message-id:mime-version; bh=h74KY7EGZq5ItKjrlJNaP4SsQpCBCtIJqcjm2dqMR2Q=; b=b31Nw9L3eP1vUSTb5v2HnMmDxWTxLLxwo24sKs9xMZYCvsOEX10GPh61 FOA6os8LIhZteBidOESHDtn0DpZqskAUMiMjRvcq06kCBv8OHDxKD+jyI VQeO2AOqF9V6brYpjRxuqABA701t1aord0I8u4NmeMrgpRo6HQAGGmCuK HSv6Fu+x6FiV59QoFG/Q8ZOXSz3aSXiKBza5BJKW0sYLFmZDLHFBp8hxd LBAVOCjhYIcDUrivhWF6gxxhLp9JERqncc1E93I1vfMP2QKBOSrfjAFen /iovQGVa2jwXbI8V3EegsnGDRIKrBG8ydSk2u3rmxgx96EnqcmbD8Jy0Y g==; X-IronPort-AV: E=McAfee;i="6500,9779,10639"; a="400082497" X-IronPort-AV: E=Sophos;i="5.98,233,1673942400"; d="scan'208";a="400082497" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2023 06:23:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10639"; a="785633684" X-IronPort-AV: E=Sophos;i="5.98,233,1673942400"; d="scan'208";a="785633684" Received: from lkp-server01.sh.intel.com (HELO 776573491cc5) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 04 Mar 2023 06:23:55 -0800 Received: from kbuild by 776573491cc5 with local (Exim 4.96) (envelope-from ) id 1pYSni-0002Cm-1r; Sat, 04 Mar 2023 14:23:54 +0000 Date: Sat, 4 Mar 2023 22:23:33 +0800 From: kernel test robot To: Marcelo Tosatti Cc: oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List Subject: [akpm-mm:mm-unstable 129/143] include/linux/compiler_types.h:399:45: error: call to '__compiletime_assert_384' declared with attribute error: BUILD_BUG failed Message-ID: <202303042217.HbD8vk8i-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Queue-Id: 9600A100005 X-Rspamd-Server: rspam01 X-Stat-Signature: 6hujstbcyniqu4jejquydmp9j9y8m76e X-HE-Tag: 1677939838-507879 X-HE-Meta: U2FsdGVkX1+eF8C4O06/+vWc4qase/w/HGQWW6woiGLdGDqICU1mpqxevc/Ek8e2ouE5NydS+bsjHU88w1Jaqf/7tg6O5fSFjKVtwxVia6kZWKsgE2MguXEmK/AD8CnzBjAlLYxZQTipSD1GWZ0MSeFxAjuhKi5gADLq+iebZIQoN8VF+TEl1Zqg4fGswnELiHFcecgCztIq5wNRgLzuOlNUaB1J4f52pr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QW7rshAGwE5YF9XaidqjCZXb0elDmQjfsRb4AdAeZ5bBiMwW2l5nlOuc8mWkRmjcNwddqaQReSLgNWu89cXVi6pjiXrGmx8vpn5ZrzbgCVVcAC8jVgsnQyeDLHcMJQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: df3ae4347aff9be1e9763ffa3b1015fca348bfbd commit: 676a3befc9bac1179f6a160ffe059c11e831a32c [129/143] mm/vmstat: use xchg in cpu_vm_stats_fold config: arc-randconfig-r043-20230302 (https://download.01.org/0day-ci/archive/20230304/202303042217.HbD8vk8i-lkp@intel.com/config) compiler: arc-elf-gcc (GCC) 12.1.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 # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=676a3befc9bac1179f6a160ffe059c11e831a32c git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 676a3befc9bac1179f6a160ffe059c11e831a32c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303042217.HbD8vk8i-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from : mm/vmstat.c: In function 'cpu_vm_stats_fold': >> include/linux/compiler_types.h:399:45: error: call to '__compiletime_assert_384' declared with attribute error: BUILD_BUG failed 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:380:25: note: in definition of macro '__compiletime_assert' 380 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _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:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG' 59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed") | ^~~~~~~~~~~~~~~~ arch/arc/include/asm/cmpxchg.h:108:17: note: in expansion of macro 'BUILD_BUG' 108 | BUILD_BUG(); \ | ^~~~~~~~~ include/linux/atomic.h:75:17: note: in expansion of macro 'arch_xchg_relaxed' 75 | __ret = op##_relaxed(args); \ | ^~ include/linux/atomic/atomic-arch-fallback.h:29:9: note: in expansion of macro '__atomic_op_fence' 29 | __atomic_op_fence(arch_xchg, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ include/linux/atomic/atomic-instrumented.h:1886:9: note: in expansion of macro 'arch_xchg' 1886 | arch_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~~ mm/vmstat.c:907:37: note: in expansion of macro 'xchg' 907 | v = xchg(&pzstats->vm_stat_diff[i], 0); | ^~~~ include/linux/compiler_types.h:399:45: error: call to '__compiletime_assert_386' declared with attribute error: BUILD_BUG failed 399 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:380:25: note: in definition of macro '__compiletime_assert' 380 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:399:9: note: in expansion of macro '_compiletime_assert' 399 | _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:59:21: note: in expansion of macro 'BUILD_BUG_ON_MSG' 59 | #define BUILD_BUG() BUILD_BUG_ON_MSG(1, "BUILD_BUG failed") | ^~~~~~~~~~~~~~~~ arch/arc/include/asm/cmpxchg.h:108:17: note: in expansion of macro 'BUILD_BUG' 108 | BUILD_BUG(); \ | ^~~~~~~~~ include/linux/atomic.h:75:17: note: in expansion of macro 'arch_xchg_relaxed' 75 | __ret = op##_relaxed(args); \ | ^~ include/linux/atomic/atomic-arch-fallback.h:29:9: note: in expansion of macro '__atomic_op_fence' 29 | __atomic_op_fence(arch_xchg, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ include/linux/atomic/atomic-instrumented.h:1886:9: note: in expansion of macro 'arch_xchg' 1886 | arch_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~~ mm/vmstat.c:933:37: note: in expansion of macro 'xchg' 933 | v = xchg(&p->vm_node_stat_diff[i], 0); | ^~~~ vim +/__compiletime_assert_384 +399 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 385 eb5c2d4b45e3d2 Will Deacon 2020-07-21 386 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 387 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 388 eb5c2d4b45e3d2 Will Deacon 2020-07-21 389 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 390 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 391 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 392 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 393 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 394 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 395 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 396 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 397 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 398 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @399 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 400 :::::: The code at line 399 was first introduced by commit :::::: eb5c2d4b45e3d2d5d052ea6b8f1463976b1020d5 compiler.h: Move compiletime_assert() macros into compiler_types.h :::::: TO: Will Deacon :::::: CC: Will Deacon -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests