Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2397037rdb; Mon, 12 Feb 2024 03:43:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5ECXikv8SZUEbBlan0vXuMAgIobe/32VVCFzUG1/OF/glOQKIgwqn4bI81pp1ejXcRcViJzWBuYL/GEVANcvk6V0qe9OXhBn0Vo+TJQ== X-Google-Smtp-Source: AGHT+IEvmozyax3WABxOPyJ/8dPClcH6h1VrNhO3bHIRG9WbcnGLBxEuB60+sGETmFkuukkE30y1 X-Received: by 2002:a05:620a:564:b0:784:8bd:8489 with SMTP id p4-20020a05620a056400b0078408bd8489mr5612554qkp.42.1707738238562; Mon, 12 Feb 2024 03:43:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707738238; cv=pass; d=google.com; s=arc-20160816; b=Kg5LTDBPQFrfFKRE+HOj0ZPbeu3GEcmmM19f5cLJp1sW5wN2WXgJDiMyFwxa+FrN4H u1O6abtvCettcTF77HTBZeDuJcRhuyAZ0t9vKbUx7GApvQNoWTQGGZa53/2S21vhPNLj 9vY9tMKcbQNG2LBXMLEwfhlj8MVAftBY/fA0QA42wSaC4d0HoqkAscRtamQglrCUovtd 1QuASBat2dtQDYSFfe73pmp0hJfG56q6Jp+HQbsnAn1nNEpcWbVsuHcVIWRM1fKMlT4C 8jwaAADJJYBfN7u1oaNPVBxddu6VOMFk/2NHyzjjsuIQmkVZpejtidJTI3I3YeJ2qodk E7tA== 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=I0gAmGbUXjHOQ4ZEgMrhCaz+UWFqY0y+vvz1dd+QPBo=; fh=Y5XJXY9w1xmIYHbKo82WfiyGy9HlRTK024Py6D4rmDE=; b=l+lGVbRZmaXqT8146LJCqP3n+0OrQfE5sCrs8ICFsRB7ZyI/P8GWHOgdN5CWhF5ipH PY+xkIOCJj4ipjh9nKFtNWNsNTYf1cPW3jVXU0yi7OLoQXzJNS7kGUgHepKBpTZjMyCE 5IQ8oMpKyNWLxgsQ0Dp9NzEDqL+9vp+DHRKBZLY+CoMhMhHsnZvSjOb9JPKveZNY6lB1 jS2dQy9xVqk6Cmx2UG527Y14wK5elQkzejYTp+R48RjOvoY7pyq8h7fc7rnhgHsZ/ybw ne25XnfWmHUgyx0XdkTcw/sHtWuAWnOnsECw+KxAzLwjh40yACkbPQlUizoR2+UDJUbM Ahlg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ewpO4hV2; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-61448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCWsPijvciJtqjpdeN+Du0PKRuX16qU81MlblpP0tVsgJHK0JcH3N1Tc0ypiHN3jRuTsW/YDtQGYmOOtqDdDyG4BtrB7Ud9FmxbE5p2aIQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs36-20020a05620a472400b00786a450ec37si411448qkb.296.2024.02.12.03.43.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:43:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=ewpO4hV2; arc=pass (i=1 spf=pass spfdomain=ionos.com dkim=pass dkdomain=ionos.com dmarc=pass fromdomain=ionos.com); spf=pass (google.com: domain of linux-kernel+bounces-61448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5442F1C21178 for ; Mon, 12 Feb 2024 11:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4C053986D; Mon, 12 Feb 2024 11:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b="ewpO4hV2" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6CBD39857 for ; Mon, 12 Feb 2024 11:43:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738232; cv=none; b=Kl/ml0GxGHULBeN17JIg9Ibn+Nx+U4apto4PjB7hh5+wU7UhdXFXJs9tDewo2MGtQyMjodUs0xHiqjCXLZLgC+vkcCd8Q1FHNUAyPdVd85jX3PDDuijEC/QBydWkT7oOhZbrMkg0S58zahUrTJzw4n6V6BQuz6feY1FDJwj+gwU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707738232; c=relaxed/simple; bh=WWCY8TDoimv/wkmildyvrGmdlzFkM/c16PoBudXe0i0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Sch438ky/gPuq6Clo3C3/j/6upHziKlNxOdb89zD7zOESYSoSajfHIs0cl6myvwn8gIyNK77gdg24ESbBwVgsO9cjj9YSDLycE7WsPqqnYhujY4C1b2D0BQxsX6wQnuUYwfIbiUqXjMcDbfP2i1XDQnPJTZwh3UIEFDWTV+8uPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com; spf=pass smtp.mailfrom=ionos.com; dkim=pass (2048-bit key) header.d=ionos.com header.i=@ionos.com header.b=ewpO4hV2; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ionos.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ionos.com Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a26f73732c5so418384866b.3 for ; Mon, 12 Feb 2024 03:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1707738227; x=1708343027; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=I0gAmGbUXjHOQ4ZEgMrhCaz+UWFqY0y+vvz1dd+QPBo=; b=ewpO4hV2PRVMF9Dk+dDDmIvPJWLdTU2tms285XbOv+qQ6tmrM6O96REC77wfVkRG+U IVXZdeP+FleK0HZl7UHkkJ/0w37Sg6EkzTrEOg7SMK70YXIzzbtUCHIxLkRJonpj/wgI Ef8MNxrv9D30BCJsbgr131uT0mvDnNO/QeK142EGetAKCMpOqbwHg1kMZyJofJ7AEJ+F o0fLY93fJTgvQBgDkgvMYxwzbBfPhZVUCfNTGs+GS3u1dZCHC6t84DzsV6aFySA8IE7Z gzQ1qD7mBEztage7gulo++mYffaTqHPoPxFgUssmbNRV7/HbCOKFZ2G1x643s7lXdxGf MXaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707738227; x=1708343027; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I0gAmGbUXjHOQ4ZEgMrhCaz+UWFqY0y+vvz1dd+QPBo=; b=ZjU3vY3z+IqBctv3SusyQUhhiSZdvHYreNVlGVwxENRNjcDUu+sONTNVDpYMVTws9E r8p5ikPPjlCWA5tDiXEj3FkL3fBKyOZ+Kd8K+x5fVKslB5SwZN8JTFEwYLtGppbcbMf2 fPWpxxe7PljxEj17FDcZihUkYofNsC5HzHzZDhdfWRU5y+0UlkUswBKBzFrSkHfUqMPn PSWAoUmx89dMwuAi18kUk2LwpDZI4XicRXlvJfFkjtrU0ya/NHzcDekoHR+daqMlLW5S jmrTK2pMij5pL/Wi1FGuS0WG4UOP/ID97plIK9LkGLCz87uaY5sda0e1+jWDDH1Hc/zu QZ+Q== X-Forwarded-Encrypted: i=1; AJvYcCWqnPN4rpvWtafw20W5ctdl22b+QljrODPsQwEFWmnWUTf+dJjxaXPU3lSISXSxZoZLm/V/QubnF2djT8mfnrhHNX/p/MI3zD+GcY0C X-Gm-Message-State: AOJu0Yxov3zls4kITGO2iWf9RvIBtJ/d3GjacGex+v34b4M7tYOXZnEx blSgyE0clxkrq3UjuXU5axufhAUnrh0PqmsxSWWj1sAGNNMDGpL1n9t3yIYGZJxqVQSHD52fPE6 O X-Received: by 2002:a17:906:4ed4:b0:a3c:881d:8a8e with SMTP id i20-20020a1709064ed400b00a3c881d8a8emr2365360ejv.64.1707738227019; Mon, 12 Feb 2024 03:43:47 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUVUxD49mn9Ht8/gvF0UKj7Yi1UxX79cnV5cETqd6PEE+/Ww6q833Uw7pjWnIdyIKNO2nQqikshCl+cJWYLNYsQeookXvppAeok/uP92E0AxjBEsT400RhngsINtHoah0LJ418= Received: from raven.blarg.de (p200300dc6f267100023064fffe740809.dip0.t-ipconnect.de. [2003:dc:6f26:7100:230:64ff:fe74:809]) by smtp.gmail.com with ESMTPSA id d13-20020a170906370d00b00a3c66ac5146sm122119ejc.120.2024.02.12.03.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:43:46 -0800 (PST) From: Max Kellermann To: almaz.alexandrovich@paragon-software.com, ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Max Kellermann Subject: [PATCH] fs/ntfs3/frecord: don't define i_size if NTFS3_LZX_XPRESS is disabled Date: Mon, 12 Feb 2024 12:43:41 +0100 Message-Id: <20240212114341.1736547-1-max.kellermann@ionos.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fixes compiler warning: fs/ntfs3/frecord.c: In function 'ni_read_frame': fs/ntfs3/frecord.c:2460:16: error: unused variable 'i_size' [-Werror=unused-variable] 2460 | loff_t i_size = i_size_read(&ni->vfs_inode); | ^~~~~~ Signed-off-by: Max Kellermann --- fs/ntfs3/frecord.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/ntfs3/frecord.c b/fs/ntfs3/frecord.c index 3b42938a9d3b..5cac06d27bf1 100644 --- a/fs/ntfs3/frecord.c +++ b/fs/ntfs3/frecord.c @@ -2457,7 +2457,9 @@ 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; +#ifdef CONFIG_NTFS3_LZX_XPRESS loff_t i_size = i_size_read(&ni->vfs_inode); +#endif u64 vbo_disk; size_t unc_size; u32 frame_size, i, npages_disk, ondisk_size; -- 2.39.2