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 691E3CA0EF2 for ; Tue, 12 Sep 2023 15:08:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D24366B0109; Tue, 12 Sep 2023 11:08:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CD4386B010A; Tue, 12 Sep 2023 11:08:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9BF46B010B; Tue, 12 Sep 2023 11:08:17 -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 ACD296B0109 for ; Tue, 12 Sep 2023 11:08:17 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 80729B3EA6 for ; Tue, 12 Sep 2023 15:08:17 +0000 (UTC) X-FDA: 81228276234.10.3A34122 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by imf30.hostedemail.com (Postfix) with ESMTP id 3D38D80026 for ; Tue, 12 Sep 2023 15:08:14 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UbxR9kDy; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694531294; 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=Ox5qcpExGWU/TvR6rQ86L62DzcL9ctF8NH6oG1bcPU8=; b=aSUSwKwPi2jJTjI3kh6omSaMxMl5CRAtsnGBqIUvUPbRF+qvplt+DtE2n8E7tg2ueSfkml V4G4NKcniAV1VEd0toVMIVj/KmS1f7SFguZt3wrM8D4n3WK41kfC7dm39zWi8tWgv3blW4 JyWzsiedIlMM7ghZDo5lEzUcpVGq0T8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694531294; a=rsa-sha256; cv=none; b=rGq+RDupR/OdHKLtbKjvstLYi0rUwW7Pmp/daGYTXjQU9P6BMr2PYn6/I9Rr3Q/tNFsB1f mgAmfMYbotvxJE+T8zSuPnXHwUQ94fm9ngPShb6aAmlIBlEtXseRN9DKIdWmAd4BI11zWA N8c8BuE5HqZc6PFHXvd7CIjC2mphsP4= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=UbxR9kDy; spf=pass (imf30.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694531294; x=1726067294; h=date:from:to:cc:subject:message-id:mime-version; bh=pdW0HPaTnq5k/XZoW2OVts3N3SQ0rkDluN6eNfWtXPU=; b=UbxR9kDyztHGw0X4c2sgUcJVEAuiMmswRXx8F8Wn2BdXxh8l7kkjPKoJ JzSK/qCH61OBmi7LjpFlZRoNT4tBUCzfRZ0/tHQJzX4/2giUpzag8yboy msWbJ0XFReStUp0QHtDDT9laxf9qIpswugfPCTwBJpsugla+s3heKT08M R0Se3lTevc2tYs/8pjBbEL0eFOpv2QWhL0PZijhLEJUIaTVdy7l3MKDHO JfK0ziZvehiGtGtAfihv2kdvr4cGjRW3xfQvXQHo3F8yBDmlyXTYkpyxo tOWY8RH+c1TkrY8sL+prI21d6Gyr7xjwmoKz4twiG5C7ubSGOcHUjNfk7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="377319372" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="377319372" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 08:06:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="867419590" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="867419590" Received: from lkp-server02.sh.intel.com (HELO 0a6943a0b3e1) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 12 Sep 2023 08:06:21 -0700 Received: from kbuild by 0a6943a0b3e1 with local (Exim 4.96) (envelope-from ) id 1qg4y3-00006B-0H; Tue, 12 Sep 2023 15:06:19 +0000 Date: Tue, 12 Sep 2023 23:06:13 +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 2362/4552] fs/bcachefs/reflink.c:85:6: warning: no previous prototype for function 'bch2_reflink_v_merge' Message-ID: <202309122339.Gdj2Cei3-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Stat-Signature: 9fcsdwwtqo14ss7i3kz5i6pfgbzkr5rb X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: 3D38D80026 X-Rspam-User: X-HE-Tag: 1694531294-83731 X-HE-Meta: U2FsdGVkX18UT5l9MXYuhMNJFNaY4VEyKi7N1iWKcfMhRETNDoB+KlEDolYefVJGAZ+KgtVTmzPmaieVFMTLYfx8LG8dtGa0W1n1AwTgI+4CfCHPZYWtnA/WA1SLNBpMqnic5y8IpbvVNqAVnvy6OVkbb/ceEjiWhoMjyyCpOw3VBxxPaBWsDFbbuRol0coHWiBYImmZrK8boYR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5aZaQmw2QeFsUD1kj/fnQEWCwjR3k0TQYiB+jrNzW52gg5NZdjTpAx59nwuzqai2ab6yKuqNWDhYnj 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: 2d1feb7b84307216167db8178df30a0c83c709c2 [2362/4552] bcachefs: Merging for indirect extents config: powerpc-randconfig-r006-20230912 (https://download.01.org/0day-ci/archive/20230912/202309122339.Gdj2Cei3-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/202309122339.Gdj2Cei3-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/202309122339.Gdj2Cei3-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/bcachefs/reflink.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: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/reflink.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/reflink.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/reflink.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)) | ~~~~~~~~~~~~~~~~~~~~~^ >> fs/bcachefs/reflink.c:85:6: warning: no previous prototype for function 'bch2_reflink_v_merge' [-Wmissing-prototypes] 85 | bool bch2_reflink_v_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r) | ^ fs/bcachefs/reflink.c:85:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 85 | bool bch2_reflink_v_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r) | ^ | static 7 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 +/bch2_reflink_v_merge +85 fs/bcachefs/reflink.c 84 > 85 bool bch2_reflink_v_merge(struct bch_fs *c, struct bkey_s _l, struct bkey_s_c _r) 86 { 87 struct bkey_s_reflink_v l = bkey_s_to_reflink_v(_l); 88 struct bkey_s_c_reflink_v r = bkey_s_c_to_reflink_v(_r); 89 90 return l.v->refcount == r.v->refcount && bch2_extent_merge(c, _l, _r); 91 } 92 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki