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 24464CA5537 for ; Wed, 13 Sep 2023 10:28:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 715C76B0172; Wed, 13 Sep 2023 06:28:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 69F336B0173; Wed, 13 Sep 2023 06:28:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 540026B0174; Wed, 13 Sep 2023 06:28:28 -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 3E3E56B0172 for ; Wed, 13 Sep 2023 06:28:28 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 0914CA0102 for ; Wed, 13 Sep 2023 10:28:28 +0000 (UTC) X-FDA: 81231199896.28.52E6C30 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by imf27.hostedemail.com (Postfix) with ESMTP id 7992C4001B for ; Wed, 13 Sep 2023 10:28:25 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Sqw/vf+4"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 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=1694600906; 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=wbV00bv0ZhafoFBzLFH72jR7QL0+7LBB27KswBIbNlo=; b=tptTY1a5XR82wdfETDpl6Y/CciKkTlGfGVTmh2MhsFrUWlmoqxtWKceAB/GY1JXalYt2Dy tRPr/F2IQf2z5u5jkC3OyWiCBVN2Br5NTgR9skb2+pFP3L8kgVLoONP609bh+a2fbwXB9K JziQvWJ3HaIi/wg2vGe8YACWFxGxc+I= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="Sqw/vf+4"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694600906; a=rsa-sha256; cv=none; b=WLe6J76e7LV5WiyvmteGUtIkcEto2mYU015iUe7vvI6WFJTAIXmBHyzv9lxAsTvhtgWIkt 5gLdZpE+9aOd8Utkk5KwD80UzS4SO6Ei94ZF/0rpQouXzdbMQgBgwP70m74YlwJ+bfW/r9 53jjEecW+DYr8po1mOo14QJl0zJfCB8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694600905; x=1726136905; h=date:from:to:cc:subject:message-id:mime-version; bh=EoTmNYoTu9hub9BQ02LPRvcEkqcucebluHidZiTkYPs=; b=Sqw/vf+4yHYOxP8u1vSOrZGAHebjK6xbla6i1hBMOyvcDDTgjNQsKN+x hB8XtsJu9dksjcX4mEqz4GYXxtIMTZdvlvVs6laSsxUjbpSUyeJ6+GU93 9u10MOR9O+dkzs+CJuT0B9ZkXpiaqslIrsLRmnaAVtKpkF4Un3qw+w6ZU FATgQ20Cw102UPxsR7MMnHbTd8rXxQU5j/rJpU9thrfGZNkxv7Ckcl8IT 7dmoU96s5G9M32+eFcBNlr3yn6hilh9Qv1zJBuaJVeRC+lQVbl2T2oQAg KqreBpL7FSbIBpmzFuynoGRphoxOd+Whnc0HKcQMIIvq8eu6ea/srcWUa w==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="363652635" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="363652635" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 03:28:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="917773492" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="917773492" Received: from lkp-server02.sh.intel.com (HELO cf13c67269a2) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 13 Sep 2023 03:28:22 -0700 Received: from kbuild by cf13c67269a2 with local (Exim 4.96) (envelope-from ) id 1qgN6Z-0000Of-2N; Wed, 13 Sep 2023 10:28:19 +0000 Date: Wed, 13 Sep 2023 18:28:16 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 2179/4552] fs/bcachefs/btree_key_cache.c:701:21: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long int' Message-ID: <202309131826.J2HlElWs-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 7992C4001B X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: boer3weeew8hy8ycwbtnkpeyzrodx3jz X-HE-Tag: 1694600905-552594 X-HE-Meta: U2FsdGVkX19ICkFlv4DYFT6AKfwURxSGeKll4OqkP9bugXVWhz/3UfExRlvxqXY1nZwvvEBTSyXW++W8dRnb1XngUIXXSL/+D4MF9Qk4W8NB7xud9KoEp1Pagawwg+ZZKSP2vhiJxl9FjRoAF9/u6OE3PG/jM9PhnwFL5dbNN1V5ZGtdDQowcni6Fna7o7etw+D3c3vapWVS2qyR4fj7CZQI9pVAwLO02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xbkFN8KYPYA4CJ6axvX5KDslWjFmo1Bmo3mwPM 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: 0b07f462c6742128c9fcd67656fb110f2d39c4e1 [2179/4552] bcachefs: btree key cache locking improvements config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20230913/202309131826.J2HlElWs-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/20230913/202309131826.J2HlElWs-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/202309131826.J2HlElWs-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/bcachefs/bcachefs.h:201, from fs/bcachefs/btree_key_cache.c:2: fs/bcachefs/bcachefs_format.h:199:25: warning: 'p' offset 3 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned] 199 | struct bpos p; | ^ fs/bcachefs/bcachefs_format.h:201:25: warning: 'version' offset 27 in 'struct bkey' isn't aligned to 4 [-Wpacked-not-aligned] 201 | struct bversion version; | ^~~~~~~ In file included from fs/bcachefs/btree_key_cache.c:6: fs/bcachefs/btree_locking.h: In function 'btree_node_lock_increment': fs/bcachefs/btree_locking.h:169:56: warning: implicit conversion from 'enum btree_node_locked_type' to 'enum six_lock_type' [-Wenum-conversion] 169 | six_lock_increment(&b->c.lock, want); | ^~~~ fs/bcachefs/btree_locking.h: In function 'btree_node_lock': fs/bcachefs/btree_locking.h:202:60: warning: implicit conversion from 'enum six_lock_type' to 'enum btree_node_locked_type' [-Wenum-conversion] 202 | btree_node_lock_increment(trans, b, level, type) || | ^~~~ In file included from fs/bcachefs/fifo.h:5, from fs/bcachefs/bcachefs.h:202: fs/bcachefs/btree_key_cache.c: In function 'bch2_btree_key_cache_to_text': >> fs/bcachefs/btree_key_cache.c:701:21: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long int' [-Wformat=] 701 | pr_buf(out, "nr_keys:\t%zu\n", atomic_long_read(&c->nr_keys)); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int fs/bcachefs/util.h:261:34: note: in definition of macro 'pr_buf' 261 | __VA_ARGS__); \ | ^~~~~~~~~~~ fs/bcachefs/btree_key_cache.c:701:34: note: format string is defined here 701 | pr_buf(out, "nr_keys:\t%zu\n", atomic_long_read(&c->nr_keys)); | ~~^ | | | unsigned int | %lu fs/bcachefs/btree_key_cache.c:702:21: warning: format '%zu' expects argument of type 'size_t', but argument 4 has type 'long int' [-Wformat=] 702 | pr_buf(out, "nr_dirty:\t%zu\n", atomic_long_read(&c->nr_dirty)); | ^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long int fs/bcachefs/util.h:261:34: note: in definition of macro 'pr_buf' 261 | __VA_ARGS__); \ | ^~~~~~~~~~~ fs/bcachefs/btree_key_cache.c:702:35: note: format string is defined here 702 | pr_buf(out, "nr_dirty:\t%zu\n", atomic_long_read(&c->nr_dirty)); | ~~^ | | | unsigned int | %lu In file included from fs/bcachefs/bcachefs.h:203: fs/bcachefs/opts.h: At top level: fs/bcachefs/opts.h:353:30: warning: 'bch2_opts_default' defined but not used [-Wunused-const-variable=] 353 | static const struct bch_opts bch2_opts_default = { | ^~~~~~~~~~~~~~~~~ fs/bcachefs/opts.h:35:14: warning: 'NO_SB_OPT_MAX' defined but not used [-Wunused-const-variable=] 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~ fs/bcachefs/bcachefs_format.h:87:25: note: in definition of macro 'LE_BITMASK' 87 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/opts.h:35:1: note: in expansion of macro 'LE64_BITMASK' 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~~~~ fs/bcachefs/opts.h:35:14: warning: 'NO_SB_OPT_BITS' defined but not used [-Wunused-const-variable=] 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~ fs/bcachefs/bcachefs_format.h:86:25: note: in definition of macro 'LE_BITMASK' 86 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/opts.h:35:1: note: in expansion of macro 'LE64_BITMASK' 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~~~~ fs/bcachefs/opts.h:35:14: warning: 'NO_SB_OPT_OFFSET' defined but not used [-Wunused-const-variable=] 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~ fs/bcachefs/bcachefs_format.h:85:25: note: in definition of macro 'LE_BITMASK' 85 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/opts.h:35:1: note: in expansion of macro 'LE64_BITMASK' 35 | LE64_BITMASK(NO_SB_OPT, struct bch_sb, flags[0], 0, 0); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1771:14: warning: 'BTREE_NODE_SEQ_MAX' defined but not used [-Wunused-const-variable=] 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:87:25: note: in definition of macro 'LE_BITMASK' 87 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/bcachefs_format.h:1771:1: note: in expansion of macro 'LE64_BITMASK' 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1771:14: warning: 'BTREE_NODE_SEQ_BITS' defined but not used [-Wunused-const-variable=] 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:86:25: note: in definition of macro 'LE_BITMASK' 86 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:1771:1: note: in expansion of macro 'LE64_BITMASK' 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1771:14: warning: 'BTREE_NODE_SEQ_OFFSET' defined but not used [-Wunused-const-variable=] 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:85:25: note: in definition of macro 'LE_BITMASK' 85 | static const unsigned name##_OFFSET = offset; \ | ^~~~ fs/bcachefs/bcachefs_format.h:1771:1: note: in expansion of macro 'LE64_BITMASK' 1771 | LE64_BITMASK(BTREE_NODE_SEQ, struct btree_node, flags, 32, 64); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1768:14: warning: 'BTREE_NODE_NEW_EXTENT_OVERWRITE_MAX' defined but not used [-Wunused-const-variable=] 1768 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:87:25: note: in definition of macro 'LE_BITMASK' 87 | static const __u##_bits name##_MAX = (1ULL << (end - offset)) - 1; \ | ^~~~ fs/bcachefs/bcachefs_format.h:1768:1: note: in expansion of macro 'LE64_BITMASK' 1768 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:1768:14: warning: 'BTREE_NODE_NEW_EXTENT_OVERWRITE_BITS' defined but not used [-Wunused-const-variable=] 1768 | LE64_BITMASK(BTREE_NODE_NEW_EXTENT_OVERWRITE, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:86:25: note: in definition of macro 'LE_BITMASK' 86 | static const unsigned name##_BITS = (end - offset); \ vim +701 fs/bcachefs/btree_key_cache.c 697 698 void bch2_btree_key_cache_to_text(struct printbuf *out, struct btree_key_cache *c) 699 { 700 pr_buf(out, "nr_freed:\t%zu\n", c->nr_freed); > 701 pr_buf(out, "nr_keys:\t%zu\n", atomic_long_read(&c->nr_keys)); 702 pr_buf(out, "nr_dirty:\t%zu\n", atomic_long_read(&c->nr_dirty)); 703 } 704 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki