Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp123073rdb; Wed, 14 Feb 2024 15:07:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX7OkAxBFee46d96kN/LiBezsjtQhRTG6oihI7JLftcmLrSAZhacTvOc19coLhQc1qjMdDa89dDakQCpU6LbKLrOWn7TP0cRmGY+gaBZA== X-Google-Smtp-Source: AGHT+IECvZW0UIEHwQ1L1Cjh7NuUdlLQEDWb1FSjfcr0R03YgncGRlh0jsqBdZyCQQRap6L+HQu4 X-Received: by 2002:a17:90a:8c5:b0:296:416f:8341 with SMTP id 5-20020a17090a08c500b00296416f8341mr169262pjn.38.1707952020895; Wed, 14 Feb 2024 15:07:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707952020; cv=pass; d=google.com; s=arc-20160816; b=kRvUFAtoHr3t7rHzgk2kJc5n5fhv8J6nq/LqjmLlqbXcIFOFPBHAUcp2+dnibFnE+i IOBgJkEhxo9xBhT/c8qdx7jRrKzr/vE0LgD/2bhNYkFFjP+jLyTUrcL4Bg4ZoLnW3mG/ aQPWzTGZUfVTTg5nRmNifgn3mCp7eBu5llc7hgmkER+lugWGqr5wFeeVAJB5IsK2NXST 2h/teNVwHjtp5Vf4OaXitQ+ZH0I+pTk/FLsz/zThQHTtwobnMNZ4gYqOjMmlXry/9xSg 3/eD5oGtNIMkWHGKECOBu1QWmtgx5Ix4kFzjctsjT9XVc0VuDgwDSbZ0BQjpOaeDVSIQ YLLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=PzpXxc0NagIrRkYmQqLuipB8ej/n69Q713FgJEf3E4Y=; fh=gfvbipGC4Mc3PjigO4ds1gviE9BhrkciKRXN1kPcc5s=; b=VmDNd8D4RJ60GsDdsLIeeKtAVjW9YFVKiu2wF3XzVAXFeT0G9OIQPuv8jES8K3xbO1 RjpOx8WgCSlSZpnZfPyQHu4t9pSvHeLQfOBRlP+4XAZiyKQG2Q1ayXQ5qvKa6LCwWtQ5 ZDdc7I6Otxh9UJSWXIih88MXFrSiB1Iu/cy5aEJTlpF6Vf/NaM9eQ7gn5Aducd0Hc9jM 7Zv24eL5aqHi1gRXVfOXu+32Fxhx3c9WIsFFCluObJZNTibHXU5JaeZ6yw7lGnV3R2bB U9xu8tvANds6lfFH8i9GMp5JT8NnbdeQMB1+6Qo5YMOQSQMve08YwARFXrPM414VsGUd 5PSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cy9W9ytx; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-66075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h21-20020a17090aea9500b00298c3984d41si1810086pjz.127.2024.02.14.15.07.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 15:07:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=cy9W9ytx; arc=pass (i=1 spf=pass spfdomain=posteo.net dkim=pass dkdomain=posteo.net dmarc=pass fromdomain=posteo.net); spf=pass (google.com: domain of linux-kernel+bounces-66075-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 45CDBB217E9 for ; Wed, 14 Feb 2024 22:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ADCF2562F; Wed, 14 Feb 2024 22:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b="cy9W9ytx" Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (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 D70D61DDC1 for ; Wed, 14 Feb 2024 22:45:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.67.36.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707950747; cv=none; b=EPWoXY++6kLO3Eon7UjLexzBtfj3pqJ3dAn3/ajdi51lAte2fSr+8T0P/4iPH7TZol8Qq6hoL3HLUK8fKEVNffvw12HHqXsLd2WJ/4c0eCi6FGtH5GSeuFX/ggkmrQCmAcPz5CjEVwrY+6L3kG0AxV4haB5R2tm+Aq61iHPU8c0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707950747; c=relaxed/simple; bh=Tmfl2Q2d9LtThpZUB2HoXDesIEkpD1mXThibjey9ijo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=V4+qpJrsdOtU+eVEbBZZ//ob0uUX9PT4ZHDXONnsCV87c+/6XlpnTJUoD8DgpX6/RX9io6woXOxy5I1cYaMFr63t6NUOvCVttMA8SJ5uO7wDBtwUIMsYPS4Ec3HrmSUzMm4+BaVky+2Qt0N8VVqUHlrZZ7mRuL9XioaxwmNNpDI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net; spf=pass smtp.mailfrom=posteo.net; dkim=pass (2048-bit key) header.d=posteo.net header.i=@posteo.net header.b=cy9W9ytx; arc=none smtp.client-ip=185.67.36.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=posteo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=posteo.net Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 01A25240101 for ; Wed, 14 Feb 2024 23:45:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707950742; bh=Tmfl2Q2d9LtThpZUB2HoXDesIEkpD1mXThibjey9ijo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=cy9W9ytxBHqdbX1LWIcnKyakyzujdS1CDgOswvp3yHNu9CIHa996sftEFlzRwX8v5 4osnsakbSXxk8Eny1TzcM6aVjIxPUCvFvyj7t37tZRtOjBaNWv48El3+R77WrrHIK5 SOHA/KYMt03jCx6yI55QikoA/GgBTwbXhZB0jGF0gDF+KYDDEXm2IltvEf21lDWHfk t6TDpOWT8YLsK6fdcbljEosSS405wyd2Pr0/J8Y06pYkydheW0KdMv8AW6G3Ee5XK/ 2IgKYNzf4ZIJ094ql04cBMrAUZ3HLjxGGWqNukhm0WKcPrw0UqRoESdJKObvWPBobG WTM7HfPpfgEkg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TZtZY0DPtz6tw2; Wed, 14 Feb 2024 23:45:40 +0100 (CET) From: Mark O'Donovan To: linux-kernel@vger.kernel.org Cc: ntfs3@lists.linux.dev, almaz.alexandrovich@paragon-software.com, Mark O'Donovan Subject: [PATCH] fs/ntfs3: fix build without CONFIG_NTFS3_LZX_XPRESS Date: Wed, 14 Feb 2024 22:45:00 +0000 Message-Id: <20240214224500.811609-1-shiftee@posteo.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When CONFIG_NTFS3_LZX_XPRESS is not set then we get the following: fs/ntfs3/frecord.c:2460:16: error: unused variable ‘i_size’ Signed-off-by: Mark O'Donovan --- fs/ntfs3/frecord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index 3b42938a9d3b..7f27382e0ce2 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -2457,7 +2457,6 @@ int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages, struct ATTR_LIST_ENTRY *le = NULL; struct runs_tree *run = &ni->file.run; u64 valid_size = ni->i_valid; - loff_t i_size = i_size_read(&ni->vfs_inode); u64 vbo_disk; size_t unc_size; u32 frame_size, i, npages_disk, ondisk_size; @@ -2509,6 +2508,7 @@ int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages, err = -EOPNOTSUPP; goto out1; #else + loff_t i_size = i_size_read(&ni->vfs_inode); u32 frame_bits = ni_ext_compress_bits(ni); u64 frame64 = frame_vbo >> frame_bits; u64 frames, vbo_data; base-commit: 7e90b5c295ec1e47c8ad865429f046970c549a66 -- 2.39.2