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 DF288EED616 for ; Fri, 15 Sep 2023 16:08:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0D1976B035A; Fri, 15 Sep 2023 12:08:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 07E706B036F; Fri, 15 Sep 2023 12:08:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E87676B0372; Fri, 15 Sep 2023 12:08:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id D4C9B6B035A for ; Fri, 15 Sep 2023 12:08:48 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id A5642160252 for ; Fri, 15 Sep 2023 16:08:48 +0000 (UTC) X-FDA: 81239315136.30.A515E40 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by imf26.hostedemail.com (Postfix) with ESMTP id 7F23714001B for ; Fri, 15 Sep 2023 16:08:45 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ku0wK1tc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694794126; 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=iJIjr+8I3QgE3Ja49unPSEtK6E1cZdU8myeJak5d3mM=; b=d7DZGOmtg0y7UwDLMUpGw5FCvBptuRiQ5n+KHKE9gV2CgbMIRsqBnUivaj+9cPz7yXdAvx O7GC8zwjfR4o2DQxqE1Yj5GuHNXvj9gKH+Nc8bNSCabJ88pd1yFTCStY/NEOLfvgrcm1gL pAVuYSAbjCDKGjIohYceJu8zCppxwNM= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=Ku0wK1tc; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf26.hostedemail.com: domain of lkp@intel.com designates 134.134.136.20 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694794126; a=rsa-sha256; cv=none; b=b5kPJxG29TglWqpwhdg9hE8NYtVF1cS/0eFv9nKYv72RdfdHuNaHsO0n+FXfWRvnJpOSUj KQFIS5icknCSSFRUL8WAmVp8jjv4rSKE7mhte5yaD3KY0od2u6JYb7LRPQPj48u92p+C82 hjUKiyoA7oqAyP0ccYm+a51/aYmSUV4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694794125; x=1726330125; h=date:from:to:cc:subject:message-id:mime-version; bh=EBcnDpv1Q/x5SiyaP+3OUxHd/F4czCm9XSC3VZ3iVFI=; b=Ku0wK1tcDIvJDflDz2wn44aukiNwY4bhkO+ZJwY/6ydFE/B8gt0Cjaju g40HPNMZeDvesrrUUN7tK92RpWZgtCSLjaO7//JNrRLfdLAAL1OLDmK20 45nqErF6OyCFX/DzmGRvpPlofo71h3eVAostYnM2Tcq/WvE2NIu1juMDx 6h93pW/OwCXNH8MkhKFTPpZnce+9o5gD74Fh4//Gkfg4boTwxHcUNcyYu burgZOO1oOmh3DTm1XqHKOi+Ql1DD80AzH+DwkcMeVnToQp8OIVunCeHk 8mWTISNYw8L7UxqhW0Y5lt5979Di/NVwO3foIvtR65IHNb+a6S2R7LAK0 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="369598215" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="369598215" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 09:08:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="835258222" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="835258222" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 15 Sep 2023 09:08:17 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qhBMd-0003AN-2m; Fri, 15 Sep 2023 16:08:15 +0000 Date: Sat, 16 Sep 2023 00:07:29 +0800 From: kernel test robot To: Kent Overstreet Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 3785/5666] fs/bcachefs/btree_key_cache.c:113:7: warning: result of comparison of constant 9223372036854775807 with expression of type 'u32' (aka 'unsigned int') is always true Message-ID: <202309160053.sFDnNiu4-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 7F23714001B X-Stat-Signature: qhcqj5kxnabhheqqwpxzgokj1nidgkxh X-HE-Tag: 1694794125-329895 X-HE-Meta: U2FsdGVkX18FOjo4C5qdtB9YRwfKH6G+FHFyimIksoFps29+6moHFZqGJXJrYijMHvE6nKGs3FD4a7Eoyzq9IANMyNUK4ZkPYu71daxxMN97583pCjoVpQvntpL9n88/xyhbZffDK658Wkgqp23OeonInfVjyhhCWiFH4alokVxupkmKmg4PQ+sIk29Hx2h3qBC2VVt+um898RGtxfo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jb9mGhAtOwlSl3bPcqJIPTy1J/KoxutipqQc1OBH 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: 85f806bc565e84adee272fe250c99ce94215ddf5 [3785/5666] bcachefs: Btree key cache shrinker fix config: x86_64-allmodconfig (https://download.01.org/0day-ci/archive/20230916/202309160053.sFDnNiu4-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230916/202309160053.sFDnNiu4-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/202309160053.sFDnNiu4-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/bcachefs/btree_key_cache.c:4: fs/bcachefs/btree_iter.h:220:8: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] static inline int btree_trans_restart_nounlock(struct btree_trans *trans, int err) ^ include/linux/compiler_types.h:215:16: note: expanded from macro 'inline' #define inline inline __gnu_inline __inline_maybe_unused notrace ^ In file included from fs/bcachefs/btree_key_cache.c:4: fs/bcachefs/btree_iter.h:230:8: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] static inline int btree_trans_restart(struct btree_trans *trans, int err) ^ include/linux/compiler_types.h:215:16: note: expanded from macro 'inline' #define inline inline __gnu_inline __inline_maybe_unused notrace ^ In file included from fs/bcachefs/btree_key_cache.c:6: fs/bcachefs/btree_locking.h:88:46: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] mark_btree_node_locked_noreset(path, level, type); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:175:51: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] mark_btree_node_locked_noreset(path, b->c.level, SIX_LOCK_intent); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ fs/bcachefs/btree_locking.h:239:33: warning: implicit conversion from enumeration type 'enum btree_node_locked_type' to different enumeration type 'enum six_lock_type' [-Wenum-conversion] six_lock_increment(&b->lock, want); ~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:259:49: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] btree_node_lock_increment(trans, b, level, type) || ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:286:49: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] mark_btree_node_locked_noreset(path, b->level, SIX_LOCK_write); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ >> fs/bcachefs/btree_key_cache.c:113:7: warning: result of comparison of constant 9223372036854775807 with expression of type 'u32' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare] if (ULONG_CMP_GE(ck->btree_trans_barrier_seq, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/rcupdate.h:35:43: note: expanded from macro 'ULONG_CMP_GE' #define ULONG_CMP_GE(a, b) (ULONG_MAX / 2 >= (a) - (b)) ~~~~~~~~~~~~~ ^ ~~~~~~~~~ 8 warnings generated. vim +113 fs/bcachefs/btree_key_cache.c 105 106 #ifdef __KERNEL__ 107 static void __bkey_cached_move_to_freelist_ordered(struct btree_key_cache *bc, 108 struct bkey_cached *ck) 109 { 110 struct bkey_cached *pos; 111 112 list_for_each_entry_reverse(pos, &bc->freed_nonpcpu, list) { > 113 if (ULONG_CMP_GE(ck->btree_trans_barrier_seq, 114 pos->btree_trans_barrier_seq)) { 115 list_move(&ck->list, &pos->list); 116 return; 117 } 118 } 119 120 list_move(&ck->list, &bc->freed_nonpcpu); 121 } 122 #endif 123 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki