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 DC790CA0ECA for ; Tue, 12 Sep 2023 10:27:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 37FE96B009E; Tue, 12 Sep 2023 06:27:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 32E9D6B00A9; Tue, 12 Sep 2023 06:27:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1F54D6B00C7; Tue, 12 Sep 2023 06:27:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 0A9D06B009E for ; Tue, 12 Sep 2023 06:27:30 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id DA49B120E3F for ; Tue, 12 Sep 2023 10:27:29 +0000 (UTC) X-FDA: 81227568618.03.6A031B9 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf19.hostedemail.com (Postfix) with ESMTP id 8718B1A0017 for ; Tue, 12 Sep 2023 10:27:27 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RBmOsj+z; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 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=1694514448; 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=ev/FY+nKOqkD6+IDKXfeYwLSxblBg0Zkn43pA07nQCU=; b=xtlsXbmp2TMpXidkvrD+7j5b+Wv/nK6USIDQ6IyEE53STLQRopZhhH7GCCTQPQGz/DVHD4 a0T1mjULeUx2wR+CNNDMGUSBkfJGEEx33fLWsyklQm6+vkk3NdY4jvgeebFoebeSpNfmZf i1z6ba+1xl7s/LF9Ys7Fum3dlGzP5aI= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RBmOsj+z; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf19.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694514448; a=rsa-sha256; cv=none; b=qaKqcxXC7wCNeENczvAIj6ukGVLWJ1IZjmgRZ3VrObIytoUDsPWpsHCgkl35YwzOHlNQoS FDct664J5gJTGkywOfNxiXMeSdUnoQ/JQTW+6u1HUUM9nT8IaauMhAXJUO8Q4G+6vXIsyH PzJ/EItsLUQAwEjSCIEtEJCUXqAHAdg= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694514447; x=1726050447; h=date:from:to:cc:subject:message-id:mime-version; bh=qGr4kPRYNLBcmOoU7BZXbzH8qvdnbOtuzecITq1V4t4=; b=RBmOsj+zEXumrc+YAmHdjjKBjvclbWZL30fc26Kqc6NoglUEapWafT9o 66cJf/2k9JMGhSAo8q3kRzLHkNNi+1YcR4exutfuUYSv86Ew0Oo/oqYtJ /IiPj13uKJaVp2tr6tgLdDThpY+OFyU84TS1NC6ZYyjwfzvtpg1043my/ BCpengzUJ39ipo4QRiGRRx7pwPlGVk3bhna4WiSzCpp3PRoDvHXblVb8+ 6gDfuQq/KM+a0kgG95VZBRHhMlCrGeCNPgyfSoqXtkr3kTwQgZJgOltUO B5SrR3p4ZNakPCXaEk2aYn+eIdHIGPrKPA2ujxCG9CsdhBzKrh16w/Mpn A==; X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="444770769" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="444770769" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 03:27:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10830"; a="917387011" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="917387011" Received: from lkp-server02.sh.intel.com (HELO 1e56c5165d33) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 12 Sep 2023 03:27:24 -0700 Received: from kbuild by 1e56c5165d33 with local (Exim 4.96) (envelope-from ) id 1qg0c6-0000GB-0m; Tue, 12 Sep 2023 10:27:22 +0000 Date: Tue, 12 Sep 2023 18:27:04 +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 2179/4552] fs/bcachefs/btree_key_cache.c:701:33: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long' Message-ID: <202309121832.Vdd6Enjx-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 8718B1A0017 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 6nsnxcusaubwms5xwg5rrohbz4yyafjm X-HE-Tag: 1694514447-798905 X-HE-Meta: U2FsdGVkX1/u/PjQ4Hov5oXzb4WO343nYhPYA2K/ZJMqpQssFum5tKh/3ZEBvPY5/Eq+LkP+9tkU9+aVlU90LOqPUHcYRWaKTXXBrgobg8PsCmmFYI0PnWf7h8DrmR62fTuBYd8N5LRBNj2YJoxxzxrlfi6+F3jOkAT2p6fY3iQkn9L98p8W3y9GOK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bcfgkgAAZdP7KQnemqCh2tAVwDbU3Z7hMmk0ebSw3a3LnbO3U53egbmfMur7z6WalUXD+lFAmbH18Mzzof 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: 3c13c772fc233a10342c8e1605ff0855dfdf0c89 commit: 0b07f462c6742128c9fcd67656fb110f2d39c4e1 [2179/4552] bcachefs: btree key cache locking improvements config: powerpc-randconfig-r006-20230912 (https://download.01.org/0day-ci/archive/20230912/202309121832.Vdd6Enjx-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/20230912/202309121832.Vdd6Enjx-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/202309121832.Vdd6Enjx-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 47 | DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 48 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :211:1: note: expanded from here 211 | __do_insl | ^ arch/powerpc/include/asm/io.h:611:56: note: expanded from macro '__do_insl' 611 | #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/bcachefs/btree_key_cache.c:2: In file included from fs/bcachefs/bcachefs.h:184: In file included from include/linux/bio.h:10: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 49 | DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :213:1: note: expanded from here 213 | __do_outsb | ^ arch/powerpc/include/asm/io.h:612:58: note: expanded from macro '__do_outsb' 612 | #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/bcachefs/btree_key_cache.c:2: In file included from fs/bcachefs/bcachefs.h:184: In file included from include/linux/bio.h:10: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 51 | DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 52 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :215:1: note: expanded from here 215 | __do_outsw | ^ arch/powerpc/include/asm/io.h:613:58: note: expanded from macro '__do_outsw' 613 | #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/bcachefs/btree_key_cache.c:2: In file included from fs/bcachefs/bcachefs.h:184: In file included from include/linux/bio.h:10: In file included from include/linux/blk_types.h:10: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:672: arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 53 | DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 54 | (p, b, c), pio, p) | ~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:669:3: note: expanded from macro 'DEF_PCI_AC_NORET' 669 | __do_##name al; \ | ^~~~~~~~~~~~~~ :217:1: note: expanded from here 217 | __do_outsl | ^ arch/powerpc/include/asm/io.h:614:58: note: expanded from macro '__do_outsl' 614 | #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from fs/bcachefs/btree_key_cache.c:6: fs/bcachefs/btree_locking.h:169:35: warning: implicit conversion from enumeration type 'enum btree_node_locked_type' to different enumeration type 'enum six_lock_type' [-Wenum-conversion] 169 | six_lock_increment(&b->c.lock, want); | ~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:202:46: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] 202 | btree_node_lock_increment(trans, b, level, type) || | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ >> fs/bcachefs/btree_key_cache.c:701:33: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long' [-Wformat] 701 | pr_buf(out, "nr_keys:\t%zu\n", atomic_long_read(&c->nr_keys)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %ld fs/bcachefs/util.h:261:6: note: expanded from macro 'pr_buf' 261 | __VA_ARGS__); \ | ^~~~~~~~~~~ fs/bcachefs/btree_key_cache.c:702:34: warning: format specifies type 'size_t' (aka 'unsigned int') but the argument has type 'long' [-Wformat] 702 | pr_buf(out, "nr_dirty:\t%zu\n", atomic_long_read(&c->nr_dirty)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %ld fs/bcachefs/util.h:261:6: note: expanded from macro 'pr_buf' 261 | __VA_ARGS__); \ | ^~~~~~~~~~~ 10 warnings generated. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for HOTPLUG_CPU Depends on [n]: SMP [=y] && (PPC_PSERIES [=n] || PPC_PMAC [=n] || PPC_POWERNV [=n] || FSL_SOC_BOOKE [=n]) Selected by [y]: - PM_SLEEP_SMP [=y] && SMP [=y] && (ARCH_SUSPEND_POSSIBLE [=n] || ARCH_HIBERNATION_POSSIBLE [=y]) && PM_SLEEP [=y] 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