public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Donald Douwsma <ddouwsma@redhat.com>
To: linux-xfs@vger.kernel.org
Cc: Donald Douwsma <ddouwsma@redhat.com>
Subject: [PATCH 1/5] xfsrestore: remove unused variable strctxp
Date: Tue, 24 Feb 2026 18:17:08 +1100	[thread overview]
Message-ID: <20260224071712.1014075-2-ddouwsma@redhat.com> (raw)
In-Reply-To: <20260224071712.1014075-1-ddouwsma@redhat.com>

Reviewing xfsdump warnings showed

content.c: In function ‘restore_extattr’:
content.c:8635:27: warning: unused variable ‘strctxp’ [-Wunused-variable]
 8635 |         stream_context_t *strctxp = (stream_context_t *)drivep->d_strmcontextp;
      |                           ^~~~~~~

strctxp is never used in restore_extattr() remove it.

Signed-off-by: Donald Douwsma <ddouwsma@redhat.com>
---
 restore/content.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/restore/content.c b/restore/content.c
index 7ec3a4d..b916e39 100644
--- a/restore/content.c
+++ b/restore/content.c
@@ -8632,7 +8632,6 @@ restore_extattr(drive_t *drivep,
 {
 	drive_ops_t *dop = drivep->d_opsp;
 	extattrhdr_t *ahdrp = (extattrhdr_t *)get_extattrbuf(drivep->d_index);
-	stream_context_t *strctxp = (stream_context_t *)drivep->d_strmcontextp;
 	bstat_t *bstatp = &fhdrp->fh_stat;
 	bool_t isfilerestored = BOOL_FALSE;
 
-- 
2.47.3


  reply	other threads:[~2026-02-24  7:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-24  7:17 [PATCH 0/5] xfsdump, xfsprogs distro builds and DEBUG= Donald Douwsma
2026-02-24  7:17 ` Donald Douwsma [this message]
2026-02-24  7:17 ` [PATCH 2/5] annotate variables only used for assert Donald Douwsma
2026-02-24  7:17 ` [PATCH 3/5] xfsrestore: include TREE_DEBUG all builds Donald Douwsma
2026-02-24  7:17 ` [PATCH 4/5] xfsrestore: remove failing assert from noref_elim_recurse Donald Douwsma
2026-03-23  3:01   ` Donald Douwsma
2026-02-24  7:17 ` [PATCH 5/5] xfsrestore: assert suppression workaround Donald Douwsma
2026-03-13 13:12 ` [PATCH 0/5] xfsdump, xfsprogs distro builds and DEBUG= Andrey Albershteyn
2026-03-23  1:48   ` Donald Douwsma

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260224071712.1014075-2-ddouwsma@redhat.com \
    --to=ddouwsma@redhat.com \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox