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 A4B01CA550A for ; Wed, 13 Sep 2023 08:51:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1F0D76B016B; Wed, 13 Sep 2023 04:51:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A0E66B016C; Wed, 13 Sep 2023 04:51:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 068EA6B016D; Wed, 13 Sep 2023 04:51:11 -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 EB6E86B016B for ; Wed, 13 Sep 2023 04:51:10 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id AE806140993 for ; Wed, 13 Sep 2023 08:51:10 +0000 (UTC) X-FDA: 81230954700.29.CFD46E9 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by imf16.hostedemail.com (Postfix) with ESMTP id 9C2F8180025 for ; Wed, 13 Sep 2023 08:51:08 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=CERfqWmd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694595068; a=rsa-sha256; cv=none; b=o1SJKcbWV5ttr0eIgAH7vn5IXyOgWtF0R+YgvEtfW1YMYqBlxxIp9cmXo4t+9s6lUSJ8HD IGPQrat4EKXRVpevrdHMMF4kiMzvzqK6MRI7wxYoC4021OAB5+yKqajU8PHG7epnO38N0W TcJlZO1dRdFMiSkMgGO4+5O5UQI+1mw= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=CERfqWmd; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf16.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 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=1694595068; 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=UuHVVTD8HLr3GxDDshtT1gsKyTizmGkb+02Q86vmKHc=; b=sKeqDR22WCH/lIA9KeXfcI7qw6Zsr2C2COBobzkR3c5PzushLCu55ilzAAl2Y0UQWZuLAO X7qhh6FCgjLy0hEJGl/EUvGlWvG2qvffhhr4i0HkLMxQ/5Fz4rahGWHVwJeSYBNm7H2FKl yrn/X8xLPSw7cS/OXTVckzqyslSW1Ww= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694595068; x=1726131068; h=date:from:to:cc:subject:message-id:mime-version; bh=CxZlJL4IZV34v0VOIj/Uns0IfPnLy4SJOkl5TJm3F50=; b=CERfqWmdeNnn9QpmYyYxlFpm64ZhJfErFXGjbH4uAOJW3DNVS9otuppx 8uplqcRB7RcAQBJJhMloAhqPiM6Q/ssddlCF4wLXfKxeYETFjizBvyRw+ 1rgYf/Aylital6eEFWxfbOWqEYxKpJTDLcD3b6fiFXUuFh4R3SCU9AQBn Qmskikpf/w5B4g2diSm/qwouC0Pj1dJrC6P7a7OHuNjRQZVUJEyXvcBUI ZsvR7ieycv0fp/qCGansaKkRvy6dEIM5sfkn7rdY0IpRM5niaqYamMBRc c4zTX2WBzl+H1bGRVuJ+qtS5nQjs6qHNlUU3y7NlOupanZU5D/5qx6E8t A==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="375934534" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="375934534" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2023 01:51:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="737415081" X-IronPort-AV: E=Sophos;i="6.02,142,1688454000"; d="scan'208";a="737415081" Received: from lkp-server02.sh.intel.com (HELO cf13c67269a2) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 13 Sep 2023 01:51:05 -0700 Received: from kbuild by cf13c67269a2 with local (Exim 4.96) (envelope-from ) id 1qgLaR-0000IP-0R; Wed, 13 Sep 2023 08:51:03 +0000 Date: Wed, 13 Sep 2023 16:50:42 +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 3370/4552] fs/bcachefs/alloc_background.c:627:10: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') Message-ID: <202309131633.dudKjDW7-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 9C2F8180025 X-Stat-Signature: 6ndq83kezqnkp1qd74x3t1btycskptb5 X-HE-Tag: 1694595068-235515 X-HE-Meta: U2FsdGVkX1+almJlE1+i+/JySn1G/M8K6Nz0Z+C7OrpHGfxfu5tdxR4Nm0dgltbFUsl4RS4m/UZx0ngskwamjTmcIDr4ieRB3enNpU5Vj3rsV761cpKg+PweZU98V180Es2WR4hkFoj1iRsNenrMLA7TUE1lkPHF94fQKrkwRc6Iw/k5wKhIPjXDQIj3JwhNCBa05nLhsjq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n5pcAsM2O0vwzx/XpQa/TguHwjpyRvOMaz4cQIfRkmF4SWSuQ7Q4e39Q90MaBB1BA0AX06o9RhE15 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: powerpc-randconfig-r006-20230912 (https://download.01.org/0day-ci/archive/20230913/202309131633.dudKjDW7-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/20230913/202309131633.dudKjDW7-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/202309131633.dudKjDW7-lkp@intel.com/ All warnings (new ones prefixed by >>): 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/alloc_background.c:2: In file included from fs/bcachefs/bcachefs.h:188: 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/alloc_background.c:5: In file included from fs/bcachefs/backpointers.h:5: fs/bcachefs/btree_iter.h:248:8: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] 248 | 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' 215 | #define inline inline __gnu_inline __inline_maybe_unused notrace | ^ In file included from fs/bcachefs/alloc_background.c:5: In file included from fs/bcachefs/backpointers.h:5: fs/bcachefs/btree_iter.h:258:8: warning: duplicate 'inline' declaration specifier [-Wduplicate-decl-specifier] 258 | static inline int btree_trans_restart(struct btree_trans *trans, int err) | ^ include/linux/compiler_types.h:215:16: note: expanded from macro 'inline' 215 | #define inline inline __gnu_inline __inline_maybe_unused notrace | ^ In file included from fs/bcachefs/alloc_background.c:7: In file included from fs/bcachefs/btree_io.h:7: 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] 88 | 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] 175 | mark_btree_node_locked_noreset(path, b->c.level, SIX_LOCK_intent); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ fs/bcachefs/btree_locking.h:241:33: warning: implicit conversion from enumeration type 'enum btree_node_locked_type' to different enumeration type 'enum six_lock_type' [-Wenum-conversion] 241 | six_lock_increment(&b->lock, want); | ~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:261:49: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] 261 | btree_node_lock_increment(trans, b, level, type) || | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~ fs/bcachefs/btree_locking.h:288:49: warning: implicit conversion from enumeration type 'enum six_lock_type' to different enumeration type 'enum btree_node_locked_type' [-Wenum-conversion] 288 | mark_btree_node_locked_noreset(path, b->level, SIX_LOCK_write); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~ In file included from fs/bcachefs/alloc_background.c:7: fs/bcachefs/btree_io.h:203:33: warning: implicit conversion from enumeration type 'enum btree_id' to different enumeration type 'enum btree_node_type' [-Wenum-conversion] 203 | btree_node_type_is_extents(btree_id) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ fs/bcachefs/btree_io.h:220:33: warning: implicit conversion from enumeration type 'enum btree_id' to different enumeration type 'enum btree_node_type' [-Wenum-conversion] 220 | btree_node_type_is_extents(btree_id) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~ fs/bcachefs/alloc_background.c:272:10: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 272 | prt_printf(err, "bad val size (%lu != %u)", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | %u 273 | bkey_val_u64s(k.k), alloc_v4_u64s(a.v)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs/bcachefs/bkey.h:47:27: note: expanded from macro 'bkey_val_u64s' 47 | #define bkey_val_u64s(_k) ((_k)->u64s - BKEY_U64s) | ^ fs/bcachefs/util.h:221:54: note: expanded from macro 'prt_printf' 221 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__) | ^~~~~~~~~~~ >> fs/bcachefs/alloc_background.c:627:10: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat] 627 | prt_printf(err, "bad val size (%lu != %zu)", | ~~~ | %zu 628 | bkey_val_bytes(k.k), sizeof(struct bch_bucket_gens)); | ^~~~~~~~~~~~~~~~~~~ fs/bcachefs/util.h:221:54: note: expanded from macro 'prt_printf' 221 | #define prt_printf(_out, ...) bch2_prt_printf(_out, __VA_ARGS__) | ^~~~~~~~~~~ fs/bcachefs/alloc_background.c:939:17: warning: no previous prototype for function '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:939:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 939 | struct bkey_s_c bch2_get_key_or_hole(struct btree_iter *iter, struct bpos end, struct bkey *hole) | ^ | static fs/bcachefs/alloc_background.c:1003:17: warning: no previous prototype for function '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) | ^ fs/bcachefs/alloc_background.c:1003:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 1003 | struct bkey_s_c bch2_get_key_or_real_bucket_hole(struct btree_iter *iter, struct bkey *hole) | ^ | static fs/bcachefs/alloc_background.c:81:20: warning: unused function 'alloc_field_v1_put' [-Wunused-function] 81 | static inline void alloc_field_v1_put(struct bkey_i_alloc *a, void **p, | ^ 20 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 +627 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