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 95A2CCDB483 for ; Fri, 13 Oct 2023 19:31:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1B06380068; Fri, 13 Oct 2023 15:31:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1602F8D0015; Fri, 13 Oct 2023 15:31:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F41BE80068; Fri, 13 Oct 2023 15:31:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E0EE68D0015 for ; Fri, 13 Oct 2023 15:31:32 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A5323C04FA for ; Fri, 13 Oct 2023 19:31:32 +0000 (UTC) X-FDA: 81341432424.01.57B5E8F Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by imf07.hostedemail.com (Postfix) with ESMTP id DEB7240016 for ; Fri, 13 Oct 2023 19:31:28 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gPmEZ8RX; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 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=1697225489; 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=XkPGcXox9ESfNRs4oACAAdDVEDZC0oLDfvpggRh3NvU=; b=c2E2BvTIauvk+YY9nDJjd3jXWvUGNiB+K/TqGdqtypp6WqjhDi8OhcGAxQW9mIeQRoUkmH 7nfhi64AjJwqznKCzHNXV9fIkLtJz95eHc24cGaABoo0oHMX0rvPEYBVO9YOOOvquwxAiI OZhNIHXBR6JXsdzkThe838Wrp+vjwcc= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697225489; a=rsa-sha256; cv=none; b=KuhPh973dVvdcGd+gdnBs6CqhJ1jEfWWhKwNTRlGU9fhn74P6Y0SCK7WgsumFpkkNSg5O9 aq/gsHWXMslEAcE2kBB0KCfyUFEr2ptX8gzkxkAEiKB5s+/iDdBHG+KMapeYoeLjlMCDcj 7Cf5DuOw1kq0BUG7Pi/naielumwuzYA= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=gPmEZ8RX; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.115 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=1697225488; x=1728761488; h=date:from:to:cc:subject:message-id:mime-version; bh=EiQnu3cAsfaNOoqv99j4/OFMHLDpECF7vtKlGzB7IOs=; b=gPmEZ8RXVCrubLJRxdIaftD7pKTYOr8v5PzKk2zOv3BskvAjIn3cylhh Ghfa9H9dF8l9Y/YizyQt7r/TSjyvYBdJNgCEWfPxUB53tOLWzrorGXTVJ rdoXPuNvgnBiZEBKA+D92e4pHPS1SPXAbFofSucO1BxFowBLjCAj97d6t jZaTMlz9MIsJCs1nDU2AVmBmkqw7gULjbjSwIqrw4g9TY7WCNUzYy8yDZ suBkplpffW6rJILvWXlbx6Zi1ZU34ubzJ7bdS+punZsDGTi1hA4AY1hNn VaNq++BtXW0vGQgQSPwL3JIL11JnLMYnTz99EJfXuUXsWfdZFIczSM1Hd A==; X-IronPort-AV: E=McAfee;i="6600,9927,10862"; a="385087485" X-IronPort-AV: E=Sophos;i="6.03,223,1694761200"; d="scan'208";a="385087485" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2023 12:31:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10862"; a="871202136" X-IronPort-AV: E=Sophos;i="6.03,223,1694761200"; d="scan'208";a="871202136" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 13 Oct 2023 12:31:25 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qrNsZ-0005JV-0w; Fri, 13 Oct 2023 19:31:23 +0000 Date: Sat, 14 Oct 2023 03:30:41 +0800 From: kernel test robot To: Kent Overstreet Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 3438/12130] fs/bcachefs/extents.h:603:17: warning: writing 8 bytes into a region of size 0 Message-ID: <202310140301.H2JW530r-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: DEB7240016 X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: getak1scjiyubxrftqmsoxjj786fqde5 X-HE-Tag: 1697225488-126075 X-HE-Meta: U2FsdGVkX1/OWpdf0i8TIgsvjmMTCePCk0doimkl5YEATcV1gVNDZP+b2NIwDBGZO5I1AgvKAY91LENxq2brAt8GmV3gmApO3R5U4Ix1HnfN9IZ4BCHkb15SjiNCm/Elb7JBesYGKWS0/Cv4hyvI21HTzAacULsETwJz0Uq43uaTYDUXVaxMlHZM6QRlRy35+xSG7QYDHBLhPDU7LZSyQwSn2j8u1OFuWsrhg2hR3LdvAUGa/KKYLabJX2k88FxbXUqOl8eIdyPPVuGF49WlUp5rAKOi2QFlXdip7SSmC4Vo51cminHJudR0bX4j9mWW8peiBAbTI1foxljF/jwOd3YXE/7GjHDlALe3nJVHtFJCfylhV7kZfKeyb/neqJpiUF9rWXfgXzjyAV/EEakMLJ/FB/y7pXuiolMYvi0XMCekjF8zbn3qepyOnPVz0/yyuOJjDqKMCVCTG2hmSqzdaveLrOnGD6k6VB83b0kstGXH/TV7OiLyP0j367bZO7RixexaFBK6qLGOZbqYBJg58TkaBLxaMkjRiS7rKlWoXXGBZ9y33w6gLTbFDXMKuEc7KG0WrC+t68qSEwr12KiEyQlyZ3I0XGYQW/tRv3uaQkxTlKNu+L1rN+J+WZZO9UiZ3hMJpHXV5k6uLwJkGb+2cHyTuFPehsPc1axjmInLUbih5kTNGfw+im8baXvVo3YTN5y8SW2wyWq25qabiJ3RLHuX7e0Lc7O9lsqEsyBy9ZeuzkXFi0d2jjtpYwxm6l6WDuYQkQVHFzgHgkf+KAajS18TS0xZybKbmaev/gqa1A1Ze2Tk+OS8GxsPYosBq5B4BbNkJaI80Pj3xA3QQkrwLU3FaiAy1fvVrTvWb3ckNs5kRIf+ZbJMp8YMUpWnjpDcuySNxwbkjthrdEXTDQUhBMIFAa6CfTGkYZ5K4Le1c1KE38193eUaB0qJZo6x6ox393uAXDb4ryY1QhIJwcU bZZjsP9I XzKO8z31rJjX1t0Cq1GLtosWYyMfVix9+6+tzXlkhFDqYYurADUHFtkgcPzXk/XoMiiFaKmRSPLLJe6hyT3WL/svoeNurxKWBcGvAiQCs626f8UHEUTRkbzkvnHWjtI3gsfQJzaZ6fllDMec8Uz/2hacG4aVHUKwYA3Th6xi9N+ka6K9FWBwTOFKcVxsr+/eb+qHpqWyt3cIMhPyAyRPfYJQAqf88stQDge/VOwbVFNLAdw3MtZMrSWGUqehjPspm/OUc+e+0MuMZYjBpChUEwtw7nuzMbVhLbJbsnWWGuI1WUUnpvS8XtM0JVg== 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: e3b18f7200f45d66f7141136c25554ac1e82009b commit: 8e5a01b126198f3325cbb48efd8dd028beca0672 [3438/12130] bcachefs: Better inlining in core write path config: powerpc64-randconfig-001-20231014 (https://download.01.org/0day-ci/archive/20231014/202310140301.H2JW530r-lkp@intel.com/config) compiler: powerpc64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231014/202310140301.H2JW530r-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/202310140301.H2JW530r-lkp@intel.com/ All warnings (new ones prefixed by >>): | ^~~~ fs/bcachefs/bcachefs_format.h:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:812:14: warning: 'INODE_NEW_VARINT_OFFSET' defined but not used [-Wunused-const-variable=] 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~~~~~ 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:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_MAX' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_BITS' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_OFFSET' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_MAX' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_BITS' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_OFFSET' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_MAX' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_BITS' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_OFFSET' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ In file included from fs/bcachefs/buckets.h:12, from fs/bcachefs/alloc_background.h:7, from fs/bcachefs/io.c:10: In function 'bch2_bkey_append_ptr', inlined from 'bch2_alloc_sectors_append_ptrs_inlined' at fs/bcachefs/alloc_foreground.h:194:3, inlined from 'init_append_extent' at fs/bcachefs/io.c:835:2: >> fs/bcachefs/extents.h:603:17: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] 603 | memcpy((void *) &k->v + bkey_val_bytes(&k->k), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 604 | &ptr, | ~~~~~ 605 | sizeof(ptr)); | ~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h: In function 'init_append_extent': fs/bcachefs/bcachefs_format.h:304:33: note: destination object 'v' of size 0 304 | struct bch_val v; | ^ fs/bcachefs/io.c: In function 'bch2_write_data_inline': fs/bcachefs/io.c:1368:40: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 1368 | id->v.data[data_len++] = '\0'; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ fs/bcachefs/bcachefs_format.h:1029:33: note: at offset [1, 4294967295] into destination object 'data' of size 0 1029 | u8 data[0]; | ^~~~ -- | ^~~~ fs/bcachefs/bcachefs_format.h:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:812:14: warning: 'INODE_NEW_VARINT_OFFSET' defined but not used [-Wunused-const-variable=] 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~~~~~ 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:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_MAX' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_BITS' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_OFFSET' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_MAX' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_BITS' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_OFFSET' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_MAX' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_BITS' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_OFFSET' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ In file included from fs/bcachefs/buckets.h:12, from fs/bcachefs/alloc_background.h:7, from fs/bcachefs/alloc_foreground.c:15: In function 'bch2_bkey_append_ptr', inlined from 'bch2_alloc_sectors_append_ptrs_inlined' at fs/bcachefs/alloc_foreground.h:194:3, inlined from 'bch2_alloc_sectors_append_ptrs' at fs/bcachefs/alloc_foreground.c:1251:2: >> fs/bcachefs/extents.h:603:17: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] 603 | memcpy((void *) &k->v + bkey_val_bytes(&k->k), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 604 | &ptr, | ~~~~~ 605 | sizeof(ptr)); | ~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h: In function 'bch2_alloc_sectors_append_ptrs': fs/bcachefs/bcachefs_format.h:304:33: note: destination object 'v' of size 0 304 | struct bch_val v; | ^ -- 102 | static const unsigned name##_BITS = (end - offset); \ | ^~~~ fs/bcachefs/bcachefs_format.h:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:812:14: warning: 'INODE_NEW_VARINT_OFFSET' defined but not used [-Wunused-const-variable=] 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~~~~~ 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:812:1: note: in expansion of macro 'LE32_BITMASK' 812 | LE32_BITMASK(INODE_NEW_VARINT, struct bch_inode, bi_flags, 31, 32); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_MAX' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_BITS' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:811:14: warning: 'INODE_NR_FIELDS_OFFSET' defined but not used [-Wunused-const-variable=] 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~~~~ 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:811:1: note: in expansion of macro 'LE32_BITMASK' 811 | LE32_BITMASK(INODE_NR_FIELDS, struct bch_inode, bi_flags, 24, 31); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_MAX' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_BITS' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:810:14: warning: 'INODE_STR_HASH_OFFSET' defined but not used [-Wunused-const-variable=] 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~~~ 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:810:1: note: in expansion of macro 'LE32_BITMASK' 810 | LE32_BITMASK(INODE_STR_HASH, struct bch_inode, bi_flags, 20, 24); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_MAX' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_BITS' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h:662:14: warning: 'BTREE_PTR_RANGE_UPDATED_OFFSET' defined but not used [-Wunused-const-variable=] 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~~~~~~~~~~~~ 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:662:1: note: in expansion of macro 'LE16_BITMASK' 662 | LE16_BITMASK(BTREE_PTR_RANGE_UPDATED, struct bch_btree_ptr_v2, flags, 0, 1); | ^~~~~~~~~~~~ In file included from fs/bcachefs/buckets.h:12, from fs/bcachefs/alloc_background.h:7, from fs/bcachefs/journal_io.c:3: In function 'bch2_bkey_append_ptr', inlined from '__journal_write_alloc.part.0' at fs/bcachefs/journal_io.c:1347:3: >> fs/bcachefs/extents.h:603:17: warning: writing 8 bytes into a region of size 0 [-Wstringop-overflow=] 603 | memcpy((void *) &k->v + bkey_val_bytes(&k->k), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 604 | &ptr, | ~~~~~ 605 | sizeof(ptr)); | ~~~~~~~~~~~~ fs/bcachefs/bcachefs_format.h: In function '__journal_write_alloc.part.0': fs/bcachefs/bcachefs_format.h:304:33: note: destination object 'v' of size 0 304 | struct bch_val v; | ^ vim +603 fs/bcachefs/extents.h 590 591 static inline void bch2_bkey_append_ptr(struct bkey_i *k, struct bch_extent_ptr ptr) 592 { 593 EBUG_ON(bch2_bkey_has_device(bkey_i_to_s_c(k), ptr.dev)); 594 595 switch (k->k.type) { 596 case KEY_TYPE_btree_ptr: 597 case KEY_TYPE_btree_ptr_v2: 598 case KEY_TYPE_extent: 599 EBUG_ON(bkey_val_u64s(&k->k) >= BKEY_EXTENT_VAL_U64s_MAX); 600 601 ptr.type = 1 << BCH_EXTENT_ENTRY_ptr; 602 > 603 memcpy((void *) &k->v + bkey_val_bytes(&k->k), 604 &ptr, 605 sizeof(ptr)); 606 k->u64s++; 607 break; 608 default: 609 BUG(); 610 } 611 } 612 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki