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 A7800EE020D for ; Wed, 13 Sep 2023 21:00:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A5546B028D; Wed, 13 Sep 2023 17:00:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1F4366B028F; Wed, 13 Sep 2023 17:00:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E83296B0290; Wed, 13 Sep 2023 17:00:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B819F6B028D for ; Wed, 13 Sep 2023 17:00:19 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 70C9F1CA44D for ; Wed, 13 Sep 2023 21:00:19 +0000 (UTC) X-FDA: 81232792158.27.E59B38D Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by imf09.hostedemail.com (Postfix) with ESMTP id 23C25140023 for ; Wed, 13 Sep 2023 21:00:15 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RRC87EBd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 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=1694638817; 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=f/Baib5nUJ+uYWDX31mHzIjT73cj2EMfuk89BxsZIE0=; b=cb19A0BrxUetUeYMjP/5yQslBiDELfvC9wGv39t9OVseEQ7fGnmg1HxTAQugBK1NLngZZt TK+Qm9v57gahEYTcvzZFjn4U9a2+UmbnMAnDgJLA/ZAP19mH4T5Uiw3EQhpZbPMrzFmt+l XCaDRmQq4T/nCP7jj5rrCrVdCov3SXM= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RRC87EBd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf09.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694638817; a=rsa-sha256; cv=none; b=NYb0pXj89HTzPsEzOj9AQZ/xsEIieoRSiVtJ2OibYgSxkwjUeeDr08kV+Xdei7SHTF0xKt o02i40qoVfuuEM8IoBipTX6JjKzHNyubUzYcvs40qd5YKMndUKh0bRc8Xf7H+OxbAbAr/V wkAhnBgbJU+AOEqjh4AGn7co9ylvQy8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694638816; x=1726174816; h=date:from:to:cc:subject:message-id:mime-version; bh=lJ23kENwbaOyUIuHNNevMINcZm5i/Mg7vseDnRUROTA=; b=RRC87EBdeNi0I7jPc5DcU37teFtV2Gov7yjmlQ6q8r8CgsbxEO/OMiQJ gGz36oFNizIwStTMizLo/2s8UaFNxxmTQO7tG73P79ah5YSDlix7ZtQlE 5lo47shBakgVueLxKuoU7+mQzrMBkNGGX6rjHMtG7vM3/tC/t2uieQ1R0 F6oHbmp65mvuxmOXqYI6i2PFk/BqtGl/3VT/N1nGgw0Vk4xy2rRioIpxA kwp5xIi2WlzjsSvQ+3B4Cf6kimaMqkPrIPwoXDDrUpnpXKNbLAe2EshP5 oI8otJRncW9lDHkEQUXk92az9lqMV3f5AyzwC12UPMcVlkJlhm3uFEekX A==; X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="465154784" X-IronPort-AV: E=Sophos;i="6.02,144,1688454000"; d="scan'208";a="465154784" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 14:00:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10832"; a="737678781" X-IronPort-AV: E=Sophos;i="6.02,144,1688454000"; d="scan'208";a="737678781" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2023 14:00:10 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qgWy0-0000dh-2I; Wed, 13 Sep 2023 21:00:08 +0000 Date: Thu, 14 Sep 2023 05:00:01 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 3370/4552] fs/bcachefs/alloc_background.c:626:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} Message-ID: <202309140449.OibuS29N-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Stat-Signature: kwrmec7nq1zar6ejsdjp7ribfz7ye5k4 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 23C25140023 X-HE-Tag: 1694638815-814763 X-HE-Meta: U2FsdGVkX19A1Nt/6P022H8OaYqw3zBWaPDsqeTRaL3RU7zOKr3K7fzN8hkWlNKLynShjH7TidW5GOmgYXq6kDjiGbRfKUI4PhJ3wgkcYctr4xwKtn9mJU6BqQl57fpww0RVw/abk2DaO1nL+ADNStmbdxZV6hNrtv0bXy29lqo64Sz+pa3VQfzIfyg/WJNNS7RSl+f6fgM+nTfQ7/qO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Evq54O8oTgNbXMaaF+s5ExrV96juDa5EAfzaedOJTBqQWK1zR1IjN+ 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: e143016b56ecb0fcda5bb6026b0a25fe55274f56 commit: 4be0d766a7e917bc514bd9f5ebeca365a2b22f07 [3370/4552] bcachefs: bucket_gens btree config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20230914/202309140449.OibuS29N-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230914/202309140449.OibuS29N-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/202309140449.OibuS29N-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/bcachefs/bcachefs.h:206, from fs/bcachefs/alloc_background.c:2: fs/bcachefs/bcachefs_format.h:215:25: warning: 'p' offset 3 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned] 215 | struct bpos p; | ^ fs/bcachefs/bcachefs_format.h:217:25: warning: 'version' offset 27 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned] 217 | struct bversion version; | ^~~~~~~ In file included from fs/bcachefs/btree_io.h:7, from fs/bcachefs/alloc_background.c:7: fs/bcachefs/btree_locking.h: In function 'mark_btree_node_locked': fs/bcachefs/btree_locking.h:88:53: warning: implicit conversion from 'enum six_lock_type' to 'enum btree_node_locked_type' [-Wenum-conversion] 88 | mark_btree_node_locked_noreset(path, level, type); | ^~~~ fs/bcachefs/btree_locking.h: In function 'bch2_btree_node_unlock_write_inlined': fs/bcachefs/btree_locking.h:175:58: warning: implicit conversion from 'enum six_lock_type' to 'enum btree_node_locked_type' [-Wenum-conversion] 175 | mark_btree_node_locked_noreset(path, b->c.level, SIX_LOCK_intent); | ^~~~~~~~~~~~~~~ fs/bcachefs/btree_locking.h: In function 'btree_node_lock_increment': fs/bcachefs/btree_locking.h:241:54: warning: implicit conversion from 'enum btree_node_locked_type' to 'enum six_lock_type' [-Wenum-conversion] 241 | six_lock_increment(&b->lock, want); | ^~~~ fs/bcachefs/btree_locking.h: In function 'btree_node_lock': fs/bcachefs/btree_locking.h:261:56: warning: implicit conversion from 'enum six_lock_type' to 'enum btree_node_locked_type' [-Wenum-conversion] 261 | btree_node_lock_increment(trans, b, level, type) || | ^~~~ fs/bcachefs/btree_locking.h: In function '__btree_node_lock_write': fs/bcachefs/btree_locking.h:288:56: warning: implicit conversion from 'enum six_lock_type' to 'enum btree_node_locked_type' [-Wenum-conversion] 288 | mark_btree_node_locked_noreset(path, b->level, SIX_LOCK_write); | ^~~~~~~~~~~~~~ fs/bcachefs/btree_io.h: In function 'compat_btree_node': fs/bcachefs/btree_io.h:203:40: warning: implicit conversion from 'enum btree_id' to 'enum btree_node_type' [-Wenum-conversion] 203 | btree_node_type_is_extents(btree_id) && | ^~~~~~~~ fs/bcachefs/btree_io.h:220:40: warning: implicit conversion from 'enum btree_id' to 'enum btree_node_type' [-Wenum-conversion] 220 | btree_node_type_is_extents(btree_id) && | ^~~~~~~~ In file included from fs/bcachefs/vstructs.h:5, from fs/bcachefs/bcachefs_format.h:79: fs/bcachefs/alloc_background.c: In function 'bch2_alloc_v4_invalid': fs/bcachefs/alloc_background.c:271:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'unsigned int' [-Wformat=] 271 | prt_printf(err, "bad val size (%lu != %u)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/util.h:221:63: note: in definition of macro 'prt_printf' 221 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__) | ^~~~~~~~~~~ fs/bcachefs/alloc_background.c:271:50: note: format string is defined here 271 | prt_printf(err, "bad val size (%lu != %u)", | ~~^ | | | long unsigned int | %u fs/bcachefs/alloc_background.c: In function 'bch2_bucket_gens_invalid': >> fs/bcachefs/alloc_background.c:626:33: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 626 | prt_printf(err, "bad val size (%lu != %zu)", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 627 | bkey_val_bytes(k.k), sizeof(struct bch_bucket_gens)); | ~~~~~~~~~~~~~~~~~~~ | | | size_t {aka unsigned int} fs/bcachefs/util.h:221:63: note: in definition of macro 'prt_printf' 221 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__) | ^~~~~~~~~~~ fs/bcachefs/alloc_background.c:626:50: note: format string is defined here 626 | prt_printf(err, "bad val size (%lu != %zu)", | ~~^ | | | long unsigned int | %u fs/bcachefs/alloc_background.c: At top level: fs/bcachefs/alloc_background.c:939:17: warning: no previous prototype for 'bch2_get_key_or_hole' [-Wmissing-prototypes] 939 | struct bkey_s_c bch2_get_key_or_hole(struct btree_iter *iter, struct bpos end, struct bkey *hole) | ^~~~~~~~~~~~~~~~~~~~ fs/bcachefs/alloc_background.c:1003:17: warning: no previous prototype for 'bch2_get_key_or_real_bucket_hole' [-Wmissing-prototypes] 1003 | struct bkey_s_c bch2_get_key_or_real_bucket_hole(struct btree_iter *iter, struct bkey *hole) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fs/bcachefs/btree_io.h:8: fs/bcachefs/checksum.h:123:23: warning: 'bch2_compression_opt_to_type' defined but not used [-Wunused-const-variable=] 123 | static const unsigned bch2_compression_opt_to_type[] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from fs/bcachefs/bcachefs.h:210: fs/bcachefs/opts.h:435:30: warning: 'bch2_opts_default' defined but not used [-Wunused-const-variable=] 435 | static const struct bch_opts bch2_opts_default = { | ^~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2180:14: warning: 'BTREE_NODE_SEQ_MAX' defined but not used [-Wunused-const-variable=] 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ 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:2180:1: note: in expansion of macro 'LE64_BITMASK' 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2180:14: warning: 'BTREE_NODE_SEQ_BITS' defined but not used [-Wunused-const-variable=] 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ 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:2180:1: note: in expansion of macro 'LE64_BITMASK' 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2180:14: warning: 'BTREE_NODE_SEQ_OFFSET' defined but not used [-Wunused-const-variable=] 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ 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:2180:1: note: in expansion of macro 'LE64_BITMASK' 2180 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2177:14: warning: 'BTREE_NODE_NEW_EXTENT_OVERWRITE_MAX' defined but not used [-Wunused-const-variable=] 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:2177:1: note: in expansion of macro 'LE64_BITMASK' 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2177:14: warning: 'BTREE_NODE_NEW_EXTENT_OVERWRITE_BITS' defined but not used [-Wunused-const-variable=] 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:2177:1: note: in expansion of macro 'LE64_BITMASK' 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2177:14: warning: 'BTREE_NODE_NEW_EXTENT_OVERWRITE_OFFSET' defined but not used [-Wunused-const-variable=] 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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:2177:1: note: in expansion of macro 'LE64_BITMASK' 2177 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2176:14: warning: 'BTREE_NODE_LEVEL_MAX' defined but not used [-Wunused-const-variable=] 2176 | LE64_BITMASK(BTREE_NODE_LEVEL, struct btree_node, flags, 4, 8); | ^~~~~~~~~~~~~~~~ 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:2176:1: note: in expansion of macro 'LE64_BITMASK' 2176 | LE64_BITMASK(BTREE_NODE_LEVEL, struct btree_node, flags, 4, 8); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:2176:14: warning: 'BTREE_NODE_LEVEL_BITS' defined but not used [-Wunused-const-variable=] 2176 | LE64_BITMASK(BTREE_NODE_LEVEL, struct btree_node, flags, 4, 8); | ^~~~~~~~~~~~~~~~ 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:2176:1: note: in expansion of macro 'LE64_BITMASK' vim +626 fs/bcachefs/alloc_background.c 621 622 int bch2_bucket_gens_invalid(const struct bch_fs *c, struct bkey_s_c k, 623 int rw, struct printbuf *err) 624 { 625 if (bkey_val_bytes(k.k) != sizeof(struct bch_bucket_gens)) { > 626 prt_printf(err, "bad val size (%lu != %zu)", 627 bkey_val_bytes(k.k), sizeof(struct bch_bucket_gens)); 628 return -BCH_ERR_invalid_bkey; 629 } 630 631 return 0; 632 } 633 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki