Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2869702rdb; Sat, 9 Dec 2023 02:22:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUA9CWfO0G2vXSm9AsZ+EhbIkA1nHIGdo5P7IIuryPjvKHwkP16r/ZKIpzvOpVEuHdO9X5 X-Received: by 2002:a05:6602:1782:b0:7b3:d91a:4936 with SMTP id y2-20020a056602178200b007b3d91a4936mr1723992iox.9.1702117329291; Sat, 09 Dec 2023 02:22:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702117329; cv=none; d=google.com; s=arc-20160816; b=0wT3V+WsQ+4+LoBgNfDQr5nzzoaNy0ITNwheiW/kCzoMvVbKuwNlTZ+tkebXtV+san Y55cureFL+OEPirkBahc+kUXimsoKE0OLuAlOOEiB4y8otIjIXqLWNX2rNsMA2NSIKjr M+1xgmJWHmx8x2OKG6Gseq5eLwdd+R3thn9P44O17HrpRp/Yczya3THD12MxkE8969SX kjWu7MEHhoTc1OV6kfhvsTbwWNfy7YbzsN0MEIibZBB5vteYD3HcZlJnIOQZWMHSh7Gu mSwBVK5nbvRAdKRieyMc9EKcjhRwnpiZR+dSNq4c3jaVUAYyIp/5LYKPLjt6qt7GfpaS 217w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=3/d/26dNKO5MORMBJax9YUgWiQO5NhV+i76KeuZzmG8=; fh=0jR8JLK4VbPPwWkFpf1ixU5ZNgtBxadm11mJ2Qovor4=; b=Au02C3c2KWuR4aZ24deKDmckat7yJgQQAO2rfTrKQfqjIAOIOD2r1BOZ0sV5tTe9cZ XSAOErk60v5qdkYnDQToBIX2/cK7bDl0saQ3e9YCJfm6NdQAXFx1ex+DKenpf3eoi/sR gA145fKmpX9OhFDbKL5oB503XFqy0n7vA9tDNywB2oIq5tMHMNs1p8hMarBgYs1/W7jX D40bNwgTyPFoHJ/K9Y+1cBRuKtcl9eSzdnaLkkW7Q4uMuiy95FU/qfQ3DHBMN6eYXN4Y PWG4+e9Pb30tnsvrJCNu5nPqUTrHL71XTQ1D/dh6ae59X6GAbMDTZfVgHHBxcQG4sLb3 ubNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AxIHGw9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id ck17-20020a056a02091100b005c6a04dfc07si3053838pgb.519.2023.12.09.02.22.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 02:22:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=AxIHGw9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 98F4880B025A; Sat, 9 Dec 2023 02:22:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229567AbjLIKVr (ORCPT + 99 others); Sat, 9 Dec 2023 05:21:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjLIKVq (ORCPT ); Sat, 9 Dec 2023 05:21:46 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B29812E for ; Sat, 9 Dec 2023 02:21:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702117313; x=1733653313; h=date:from:to:cc:subject:message-id:mime-version; bh=/ksl0sdPrEXa+KPusl2nMjqXcvg9LCAN3e0GNe+nZig=; b=AxIHGw9SwMjhWBVg9vdPVGkG1c09l1KN6wBgk9QlNUOzdLaLokMvr5Tw q7awAzt9zCpkPjdbKLI3Cvj/M5yZgHuCIiCLpmazdrZ+QJXXk5bf1pJHo FTehaMdyxCplV8I4aeyQutJUutmRYPnHXCGBoT+oHEcaCZrpO6DnGW7WY EPBvQcpQoV4IfPyUGA963hsujOgWEJ42Tg0JgSD2QZS8oMdLxd82/gNY3 WHtXYkflN8UfOSqXHMtcTH0Iz8Ej6uAzeJKEoTB9FOjvVxjjFZnmZ3AfO jqk1IZLreV5g8/2Rf4hFzYlyvaKVn+uaKbG8AXG66SHEmaeIAghhVHnly g==; X-IronPort-AV: E=McAfee;i="6600,9927,10918"; a="1576258" X-IronPort-AV: E=Sophos;i="6.04,263,1695711600"; d="scan'208";a="1576258" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2023 02:21:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,263,1695711600"; d="scan'208";a="13760149" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 09 Dec 2023 02:21:50 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rBuSM-000FBp-0B; Sat, 09 Dec 2023 10:21:47 +0000 Date: Sat, 9 Dec 2023 18:20:37 +0800 From: kernel test robot To: "Paul E. McKenney" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Josef Bacik Subject: [paulmck-rcu:frederic.2023.12.08a 29/37] fs/btrfs/transaction.c:496:6: error: call to '__compiletime_assert_329' declared with 'error' attribute: Need native word sized stores/loads for atomicity. Message-ID: <202312091837.cKaPw0Tf-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 09 Dec 2023 02:22:06 -0800 (PST) tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git frederic.2023.12.08a head: 37843b5f561a08ae899fb791eeeb5abd992eabe2 commit: 7dd87072d40809e26503f04b79d63290288dbbac [29/37] btrfs: Adjust ->last_trans ordering in btrfs_record_root_in_trans() config: riscv-rv32_defconfig (https://download.01.org/0day-ci/archive/20231209/202312091837.cKaPw0Tf-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231209/202312091837.cKaPw0Tf-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/202312091837.cKaPw0Tf-lkp@intel.com/ All errors (new ones prefixed by >>): warning: unknown warning option '-Wpacked-not-aligned'; did you mean '-Wpacked-non-pod'? [-Wunknown-warning-option] warning: unknown warning option '-Wstringop-truncation'; did you mean '-Wstring-concatenation'? [-Wunknown-warning-option] warning: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Wunknown-warning-option] >> fs/btrfs/transaction.c:496:6: error: call to '__compiletime_assert_329' declared with 'error' attribute: Need native word sized stores/loads for atomicity. 496 | if (smp_load_acquire(&root->last_trans) == trans->transid && /* ^^^ */ | ^ include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire' 176 | #define smp_load_acquire(p) __smp_load_acquire(p) | ^ arch/riscv/include/asm/barrier.h:42:2: note: expanded from macro '__smp_load_acquire' 42 | compiletime_assert_atomic_type(*p); \ | ^ include/linux/compiler_types.h:438:2: note: expanded from macro 'compiletime_assert_atomic_type' 438 | compiletime_assert(__native_word(t), \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert' 423 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert' 416 | prefix ## suffix(); \ | ^ :60:1: note: expanded from here 60 | __compiletime_assert_329 | ^ fs/btrfs/transaction.c:434:3: error: call to '__compiletime_assert_326' declared with 'error' attribute: Need native word sized stores/loads for atomicity. 434 | smp_store_release(&root->last_trans, trans->transid); /* ^^^ */ | ^ include/asm-generic/barrier.h:172:55: note: expanded from macro 'smp_store_release' 172 | #define smp_store_release(p, v) do { kcsan_release(); __smp_store_release(p, v); } while (0) | ^ arch/riscv/include/asm/barrier.h:34:2: note: expanded from macro '__smp_store_release' 34 | compiletime_assert_atomic_type(*p); \ | ^ include/linux/compiler_types.h:438:2: note: expanded from macro 'compiletime_assert_atomic_type' 438 | compiletime_assert(__native_word(t), \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert' 423 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert' 416 | prefix ## suffix(); \ | ^ :46:1: note: expanded from here 46 | __compiletime_assert_326 | ^ >> fs/btrfs/transaction.c:496:6: error: call to '__compiletime_assert_329' declared with 'error' attribute: Need native word sized stores/loads for atomicity. 496 | if (smp_load_acquire(&root->last_trans) == trans->transid && /* ^^^ */ | ^ include/asm-generic/barrier.h:176:29: note: expanded from macro 'smp_load_acquire' 176 | #define smp_load_acquire(p) __smp_load_acquire(p) | ^ arch/riscv/include/asm/barrier.h:42:2: note: expanded from macro '__smp_load_acquire' 42 | compiletime_assert_atomic_type(*p); \ | ^ include/linux/compiler_types.h:438:2: note: expanded from macro 'compiletime_assert_atomic_type' 438 | compiletime_assert(__native_word(t), \ | ^ note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) include/linux/compiler_types.h:423:2: note: expanded from macro '_compiletime_assert' 423 | __compiletime_assert(condition, msg, prefix, suffix) | ^ include/linux/compiler_types.h:416:4: note: expanded from macro '__compiletime_assert' 416 | prefix ## suffix(); \ | ^ :60:1: note: expanded from here 60 | __compiletime_assert_329 | ^ 3 warnings and 3 errors generated. vim +496 fs/btrfs/transaction.c 481 482 int btrfs_record_root_in_trans(struct btrfs_trans_handle *trans, 483 struct btrfs_root *root) 484 { 485 struct btrfs_fs_info *fs_info = root->fs_info; 486 int ret; 487 488 if (!test_bit(BTRFS_ROOT_SHAREABLE, &root->state)) 489 return 0; 490 491 /* 492 * see record_root_in_trans for comments about IN_TRANS_SETUP usage 493 * and barriers. The smp_load_acquire() pairs with the smp_wmb() 494 * and the test_bit_acquire pairs with the smp_mb__before_atomic(). 495 */ > 496 if (smp_load_acquire(&root->last_trans) == trans->transid && /* ^^^ */ 497 !test_bit_acquire(BTRFS_ROOT_IN_TRANS_SETUP, &root->state)) /* ^^^ */ 498 return 0; 499 500 mutex_lock(&fs_info->reloc_mutex); 501 ret = record_root_in_trans(trans, root, 0); 502 mutex_unlock(&fs_info->reloc_mutex); 503 504 return ret; 505 } 506 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki