Message ID | 20240212114341.1736547-1-max.kellermann@ionos.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-61448-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2373039dyd; Mon, 12 Feb 2024 03:44:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWaEha1tf9WhE+OS5qluZhafScGuYTmJLamh2HvU71K6UGmJAqhLv2ZGeo91O0N7AA8DmVHYi5vNGVWk3UWpeiCcbB37A== X-Google-Smtp-Source: AGHT+IEsDTyTzDAxj8rbmV6B77XkFfhWABG43ELtg897Rmaiadv3f9NxfKTegBo/QVALNo0GHQvM X-Received: by 2002:a25:d387:0:b0:dc7:46b7:b7f6 with SMTP id e129-20020a25d387000000b00dc746b7b7f6mr5315189ybf.28.1707738246374; Mon, 12 Feb 2024 03:44:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707738246; cv=pass; d=google.com; s=arc-20160816; b=JDzBBeom2OhUqujB1CxQ5oEFqx5w/vN+1I04/9GQZN9+6UE83oknlhpZAhNfUKaAlx RzAZ9FgeIr4VwPbxAgaSsk3g7N2xKuv0/tvAPGA0+aO1KIS872eYMfTMDopoHnmEOqw+ PxRBhzkv+m52W+guHFvifBf1CcXtxg3NX3LaRTiITJAMOaWwqlTArM4yh3SfFWpD8u+m ACGMl/bFJZCbtHWQf3Du2OetNLHAV82BqB/lIIkVbgcAmmJvm2/f+VhoR3zasU27G4ZT PuUSHXVthwNho8oRZ9j8TPSHjsFHlhdhMGixZdiu0Sn8P4CFJhC89hKd5cmTEmsClbNz Phxg== 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=IqL3A/eZsKr1usL71yaAo6Q8Gu5tGFf0tIALAjylNbo=; b=qnrrPbEPkbZ8ZneCtqg8/aovIpR+EDNP8YBnmyp69HZvSdhoYNkWWFalORYPCDxx1r F9wnmfE+vKCSesNatKIXRthMIVi+v/O/XsSepUShanN1DWvsLK5r83L4DBHypzKJY6+D hqCWum9V3//85LHRq/Oaz87801bgkEhTk1y+m84CaWbsbJyPzCkmUAIjV04mjDmmEOCG ENOksKuh8nzloU+FCQM0ad+0R6Ws4G0Q9ipadWUvyTZr6AP23g4rxK9MlwT/IsY/ZhWZ 7bQDCF1QMA2X+US6WC3xyXqGIogi4HwYuZIPly9oSemnSS/cdwSUgVF1umldF7QlD0RK Yl3g==; 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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61448-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com X-Forwarded-Encrypted: i=2; AJvYcCUNje5v+gbh5yCRMp7m0OMs+vHoP2MazAt2GTIQxh8bIq1q5AW0fnjIOuFC8+bmCoDdksoz9SLV9mXI6ZecRYKLZ5nj/g== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j14-20020a05620a0a4e00b00786703ed420si414061qka.120.2024.02.12.03.44.06 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 03:44:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61448-ouuuleilei=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-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61448-ouuuleilei=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 2A4371C2108C for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 11:44:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAC6A39AD4; Mon, 12 Feb 2024 11:43:54 +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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <max.kellermann@ionos.com> To: almaz.alexandrovich@paragon-software.com, ntfs3@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Max Kellermann <max.kellermann@ionos.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790693339447526004 X-GMAIL-MSGID: 1790693339447526004 |
Series |
fs/ntfs3/frecord: don't define i_size if NTFS3_LZX_XPRESS is disabled
|
|
Commit Message
Max Kellermann
Feb. 12, 2024, 11:43 a.m. UTC
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 <max.kellermann@ionos.com>
---
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;