From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9917DDC5 for ; Sat, 8 Mar 2025 15:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741447937; cv=none; b=FrOcy3SmHtQEZw8TDnm0Uh8Jx/LbqXLtbgtQkTdznMnYhvB1MHYf7VDR2Rg/4+7G9H36Opn3K6LSQ79V7tAqYHE2cNMknXzuDpPfQWCFAWFgKKKzF3nBr2ONdKfLZ2mcwfWmxvl4kEAmXMD06rMVzYz6g0emYpG+uq5kZ04+nOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741447937; c=relaxed/simple; bh=uQ2PwAcUFJcaSfIYVHtwCGZc7Khn0XllXM41TWBSa6M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IXi0AG9I+OL5NcgE9Ul1BUhvFXRWJYuaRR4QuR65YdUX390n+eA6vlErPS6JydShF0J8CghtweIC7sEuIpr3iKVQu4KW8zK6AUMo/nibylheHkrDpxwEBgdABLXKCx5VYoheKzYP9hDSH4vDDq0zP2ZNyJqtF9VQf8eaG6OMVT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VXbO2tVG; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VXbO2tVG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1741447936; x=1772983936; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uQ2PwAcUFJcaSfIYVHtwCGZc7Khn0XllXM41TWBSa6M=; b=VXbO2tVGie71mV66Kvb4l/eqbtnR7VfPWXp2TiZ7X/yRw8U64b6wUV5Y ABglQqlB+qTfN5BoMqSfjbiarLtdFuujoWK68lkyN2wk9Y2OQTQll59EL SyEvIjUMHGsIH/lO9clIN5PnXcKs08cvcMIng1oRekxa1wv/hLO6jICWU F/bN59oaBIWurC8cToVWJ+s8LiTcx34My+E2b61bMOkCRGu7GA7M/yzFP IwnOxPz6zEB6BAmgxFsDlr2sCDF93BCUfeb1zrIt8uo6vHV1bxqG2bxmI MHKDsuoDnzPcyYHBTpQSIW220Ft8rz3oodqJ+HwxQZ0jzj4AA0YcE6orp Q==; X-CSE-ConnectionGUID: uXLIq8qUTBuyo7uSoUBHZw== X-CSE-MsgGUID: CV22ltjvQFiImWOKanE65A== X-IronPort-AV: E=McAfee;i="6700,10204,11367"; a="46267537" X-IronPort-AV: E=Sophos;i="6.14,232,1736841600"; d="scan'208";a="46267537" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2025 07:32:15 -0800 X-CSE-ConnectionGUID: pwUJaqt7T96GSUlyybx4DQ== X-CSE-MsgGUID: DT42SmmRRTqp7eldHimn0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="150526791" Received: from lkp-server02.sh.intel.com (HELO a4747d147074) ([10.239.97.151]) by fmviesa001.fm.intel.com with ESMTP; 08 Mar 2025 07:32:14 -0800 Received: from kbuild by a4747d147074 with local (Exim 4.96) (envelope-from ) id 1tqw9r-0001zw-2i; Sat, 08 Mar 2025 15:32:11 +0000 Date: Sat, 8 Mar 2025 23:31:41 +0800 From: kernel test robot To: fdmanana@kernel.org, linux-btrfs@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH 4/8] btrfs: make btrfs_iget() return a btrfs inode instead Message-ID: <202503082341.T7dnq95G-lkp@intel.com> References: Precedence: bulk X-Mailing-List: linux-btrfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi, kernel test robot noticed the following build errors: [auto build test ERROR on kdave/for-next] [also build test ERROR on next-20250307] [cannot apply to linus/master v6.14-rc5] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/fdmanana-kernel-org/btrfs-return-a-btrfs_inode-from-btrfs_iget_logging/20250307-214724 base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next patch link: https://lore.kernel.org/r/f6d2a09fb43742fb5be38f820908510e298f8d40.1741354479.git.fdmanana%40suse.com patch subject: [PATCH 4/8] btrfs: make btrfs_iget() return a btrfs inode instead config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250308/202503082341.T7dnq95G-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250308/202503082341.T7dnq95G-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/202503082341.T7dnq95G-lkp@intel.com/ All errors (new ones prefixed by >>): fs/btrfs/send.c: In function 'send_encoded_inline_extent': >> fs/btrfs/send.c:5535:15: error: assignment to 'struct inode *' from incompatible pointer type 'struct btrfs_inode *' [-Wincompatible-pointer-types] 5535 | inode = btrfs_iget(sctx->cur_ino, root); | ^ vim +5535 fs/btrfs/send.c 16e7549f045d33b Josef Bacik 2013-10-22 5519 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5520 static int send_encoded_inline_extent(struct send_ctx *sctx, 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5521 struct btrfs_path *path, u64 offset, 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5522 u64 len) 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5523 { 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5524 struct btrfs_root *root = sctx->send_root; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5525 struct btrfs_fs_info *fs_info = root->fs_info; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5526 struct inode *inode; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5527 struct fs_path *fspath; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5528 struct extent_buffer *leaf = path->nodes[0]; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5529 struct btrfs_key key; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5530 struct btrfs_file_extent_item *ei; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5531 u64 ram_bytes; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5532 size_t inline_size; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5533 int ret; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5534 d13240dd0a2d13b Filipe Manana 2024-06-13 @5535 inode = btrfs_iget(sctx->cur_ino, root); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5536 if (IS_ERR(inode)) 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5537 return PTR_ERR(inode); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5538 6054b503e2eafac Filipe Manana 2025-02-18 5539 fspath = get_cur_inode_path(sctx); 6054b503e2eafac Filipe Manana 2025-02-18 5540 if (IS_ERR(fspath)) { 6054b503e2eafac Filipe Manana 2025-02-18 5541 ret = PTR_ERR(fspath); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5542 goto out; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5543 } 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5544 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5545 ret = begin_cmd(sctx, BTRFS_SEND_C_ENCODED_WRITE); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5546 if (ret < 0) 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5547 goto out; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5548 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5549 btrfs_item_key_to_cpu(leaf, &key, path->slots[0]); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5550 ei = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_file_extent_item); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5551 ram_bytes = btrfs_file_extent_ram_bytes(leaf, ei); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5552 inline_size = btrfs_file_extent_inline_item_len(leaf, path->slots[0]); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5553 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5554 TLV_PUT_PATH(sctx, BTRFS_SEND_A_PATH, fspath); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5555 TLV_PUT_U64(sctx, BTRFS_SEND_A_FILE_OFFSET, offset); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5556 TLV_PUT_U64(sctx, BTRFS_SEND_A_UNENCODED_FILE_LEN, 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5557 min(key.offset + ram_bytes - offset, len)); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5558 TLV_PUT_U64(sctx, BTRFS_SEND_A_UNENCODED_LEN, ram_bytes); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5559 TLV_PUT_U64(sctx, BTRFS_SEND_A_UNENCODED_OFFSET, offset - key.offset); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5560 ret = btrfs_encoded_io_compression_from_extent(fs_info, 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5561 btrfs_file_extent_compression(leaf, ei)); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5562 if (ret < 0) 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5563 goto out; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5564 TLV_PUT_U32(sctx, BTRFS_SEND_A_COMPRESSION, ret); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5565 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5566 ret = put_data_header(sctx, inline_size); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5567 if (ret < 0) 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5568 goto out; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5569 read_extent_buffer(leaf, sctx->send_buf + sctx->send_size, 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5570 btrfs_file_extent_inline_start(ei), inline_size); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5571 sctx->send_size += inline_size; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5572 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5573 ret = send_cmd(sctx); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5574 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5575 tlv_put_failure: 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5576 out: 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5577 iput(inode); 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5578 return ret; 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5579 } 3ea4dc5bf00c7d1 Omar Sandoval 2022-03-17 5580 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki