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 A96D1EED61E for ; Fri, 15 Sep 2023 17:44:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F7A86B037D; Fri, 15 Sep 2023 13:44:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3A8086B0392; Fri, 15 Sep 2023 13:44:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 26F6A6B0393; Fri, 15 Sep 2023 13:44:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 1861D6B037D for ; Fri, 15 Sep 2023 13:44:10 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CD4D180756 for ; Fri, 15 Sep 2023 17:44:09 +0000 (UTC) X-FDA: 81239555418.25.A4A15DC Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by imf01.hostedemail.com (Postfix) with ESMTP id 5295C4001E for ; Fri, 15 Sep 2023 17:44:06 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=laDcKVpM; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=1694799847; 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=flYZKjbbOtX7xe/E+EiaM2d6zPv9KdQcHfFBmX29Vrk=; b=Yf/jp19+4reqDigB7SAHomuXUoDTzylO+cJtNDc+6YrjogqxXyuxHQIkjkHOXl0y6ErlZn ZMh3nzU1cZ4+3WaUVwrbNJJ7wXGV4OsYnaMNpAy8la6aCot8aYqOU37HyKaIcqRq049Vme JfcEPKlFJPc0P2sl/ccYs6/KtrU7res= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=laDcKVpM; spf=pass (imf01.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 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=1694799847; a=rsa-sha256; cv=none; b=gptTv9O698Sexgq8SGgk3GPYjHwU47gjKH5wGziH7q17L1N3kgN8mPDzhqOokaKW+oCgmW 6eWfmdvo1SqVxFbnSCPJdLk+e1vNkY/MMlLqbNfrkvIOvanvJR223eAryeuGXRRIAPTUcg sOBOqvDOP/TA6fTwHmUNM2F2SBtXYGE= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694799846; x=1726335846; h=date:from:to:cc:subject:message-id:mime-version; bh=OfTV7f3lkTYJ2Sr0nb6AWVhrJJM1wqGqtGXTcBvdX4I=; b=laDcKVpM7j9CiKcizte2L1pDJm+aSQTLHCEu/V0cr7I1PMwpsbjWelWx XajGSfaWw+2yq5nb86u1T1I5KXWRL9l/SRzElrFIVl9tYjHM958FiZ3M0 d8H03LSerU53P3HDe05DToiVbHcToUcGT/op9VRH5EXjOR0iWonO0E8xR UC1Vc2jRs+5quIYPGL0BPUw007tNV8+FPP90NRaUXdl/2pCQHyGTHse1H oZfmulxivginGH79+H1wH5YW4Qx57qgWsOk/u7uhoKIhe+OvTv3TbObrA 9BT7md9NrGIb5Xyij9vlBNGRAckF4pR4Yj7QfaNDCj0bJtyIV+kEuMRTN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="378218362" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="378218362" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 10:44:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="738409054" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="738409054" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 15 Sep 2023 10:44:03 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qhCrI-0003Fo-2n; Fri, 15 Sep 2023 17:44:00 +0000 Date: Sat, 16 Sep 2023 01:43:48 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 3472/5666] include/linux/compiler_types.h:425:45: error: call to '__compiletime_assert_360' declared with attribute error: BUILD_BUG failed Message-ID: <202309160110.7LQ8HD6U-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 5295C4001E X-Rspam-User: X-Stat-Signature: 9qkhq6ik8ybby89qn1gmayo4e9znfc91 X-Rspamd-Server: rspam01 X-HE-Tag: 1694799846-689407 X-HE-Meta: U2FsdGVkX18Ny5HVG39jX/4nFFxXnMHOO2PPs1b38B+Ho5r9Du6U0Q2wI/AZIekOGQVAQ12P0Tlu9WgiQstZSvljZD5dA/NE5QY7t+kP6qKookPokN5udoO6J6V234u26Q6kwKrvCWbuzJ5WVmUJR98rRSOnGLJtk6UG81v6mrkh+8nKKl8CFmaaWNBnWYyfbExrOcxQJv3YUDbldBg1y2AVcvDeNl01K0qrV1Bj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gkCDxuBiBcNZFEHvISfGuexSD0eBbOzp5 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/next/linux-next.git master head: dfa449a58323de195773cf928d99db4130702bf7 commit: 43ae95661a99a8c76474469e91c3528c07eb5ce9 [3472/5666] bcachefs: Kill struct bucket_mark config: arc-allmodconfig (https://download.01.org/0day-ci/archive/20230916/202309160110.7LQ8HD6U-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230916/202309160110.7LQ8HD6U-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202309160110.7LQ8HD6U-lkp@intel.com/ All errors (new ones prefixed by >>): 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:102:25: note: in definition of macro 'LE_BITMASK' 102 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:812:14: warning: 'INODE_NEW_VARINT_OFFSET' defined but not used [-Wunused-const-variable=] 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:101:25: note: in definition of macro 'LE_BITMASK' 101 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_MAX' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:103:25: note: in definition of macro 'LE_BITMASK' 103 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/bcachefs_format.h:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_BITS' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:102:25: note: in definition of macro 'LE_BITMASK' 102 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_OFFSET' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:101:25: note: in definition of macro 'LE_BITMASK' 101 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_MAX' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:103:25: note: in definition of macro 'LE_BITMASK' 103 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/bcachefs_format.h:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_BITS' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:102:25: note: in definition of macro 'LE_BITMASK' 102 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_OFFSET' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:101:25: note: in definition of macro 'LE_BITMASK' 101 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_MAX' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:103:25: note: in definition of macro 'LE_BITMASK' 103 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/bcachefs_format.h:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_BITS' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:102:25: note: in definition of macro 'LE_BITMASK' 102 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_OFFSET' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:101:25: note: in definition of macro 'LE_BITMASK' 101 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ In file included from : fs/bcachefs/buckets.h: In function 'bucket_lock.isra': >> include/linux/compiler_types.h:425:45: error: call to '__compiletime_assert_360' declared with attribute error: BUILD_BUG failed 425 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^ include/linux/compiler_types.h:406:25: note: in definition of macro '__compiletime_assert' 406 | prefix ## suffix(); \ | ^~~~~~ include/linux/compiler_types.h:425:9: note: in expansion of macro '_compiletime_assert' 425 | _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:15:9: note: in expansion of macro '__atomic_op_fence' 15 | __atomic_op_fence(arch_xchg, __VA_ARGS__) | ^~~~~~~~~~~~~~~~~ include/linux/atomic/atomic-instrumented.h:4716:9: note: in expansion of macro 'raw_xchg' 4716 | raw_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~ fs/bcachefs/buckets.h:25:16: note: in expansion of macro 'xchg' 25 | while (xchg(&b->lock, 1)) | ^~~~ vim +/__compiletime_assert_360 +425 include/linux/compiler_types.h eb5c2d4b45e3d2 Will Deacon 2020-07-21 411 eb5c2d4b45e3d2 Will Deacon 2020-07-21 412 #define _compiletime_assert(condition, msg, prefix, suffix) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 413 __compiletime_assert(condition, msg, prefix, suffix) eb5c2d4b45e3d2 Will Deacon 2020-07-21 414 eb5c2d4b45e3d2 Will Deacon 2020-07-21 415 /** eb5c2d4b45e3d2 Will Deacon 2020-07-21 416 * compiletime_assert - break build and emit msg if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 417 * @condition: a compile-time constant condition to check eb5c2d4b45e3d2 Will Deacon 2020-07-21 418 * @msg: a message to emit if condition is false eb5c2d4b45e3d2 Will Deacon 2020-07-21 419 * eb5c2d4b45e3d2 Will Deacon 2020-07-21 420 * In tradition of POSIX assert, this macro will break the build if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 421 * supplied condition is *false*, emitting the supplied error message if the eb5c2d4b45e3d2 Will Deacon 2020-07-21 422 * compiler has support to do so. eb5c2d4b45e3d2 Will Deacon 2020-07-21 423 */ eb5c2d4b45e3d2 Will Deacon 2020-07-21 424 #define compiletime_assert(condition, msg) \ eb5c2d4b45e3d2 Will Deacon 2020-07-21 @425 _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) eb5c2d4b45e3d2 Will Deacon 2020-07-21 426 :::::: The code at line 425 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/wiki