From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 72DE54848B1; Thu, 17 Sep 2026 16:52:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663952; cv=none; b=b7j4kpfar7Y0UlqsHKGaI8frSHedkPhR399grCWK6EQ074gqikbEqpQ1AybLlnbZ0tjmQjZTRooRpJfVrP5+gBGWlQIrNdlTrdVMrg9jvAcRPb4AFUg3AtYqg0C9cFfSNIwFFx01jB/SKx99GMvV9FLomD3HxJFF9/1nauVnye8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663952; c=relaxed/simple; bh=wlado+N30ermI0zNuEpT51h7frejAt9nazpTYyd6VWU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kl1KPto93ebWL0pktJ+rdocoznKP07VBXY7PK76Feuv2KmWfDe5ykAjKE1lS7HIdJG+KCeNaXVDmiryXBbQjIiaEBPavYwiriL9XV0zxCikNsBSD/9AC/lR6RliaYxIV0f/V7vTFsZdp7xVxlc89K/JNHmrKc41g/PLMPbLU+ug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L/0orHCL; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="L/0orHCL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C905B1F000FF; Thu, 17 Sep 2026 16:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663951; bh=iwrtMcY0JeXfkUso9ccjXeg1MthANOuLNmVCd3xOhp0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=L/0orHCL9CkupkX0N/Ldewqiz3cQALavTiG/VV1+RpUehelTScVhcKS9ErUnLZdUL WQr/6uSx8enVkSk6XIRJaFQITzhIsQecZ70kx1xX8RQQBpqf/alXg7Hkmo86EhoLbm wtdAm3OonSvK104gOUB5bjoyYZTu+D1cOa9aN110= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christian Borntraeger , Heiko Carstens , Alexander Gordeev , Sasha Levin Subject: [PATCH 6.18 0208/1250] s390/zcore: Removed unused variables Date: Thu, 17 Sep 2026 16:00:03 +0100 Message-ID: <20260917151557.761996962@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151551.901433442@linuxfoundation.org> References: <20260917151551.901433442@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Heiko Carstens [ Upstream commit 0a2aa995c0a1d363b5f0803862e84834e3876ae2 ] allmodconfig with clang W=1 points out unused global variables: drivers/s390/char/zcore.c:49:23: error: variable 'zcore_reipl_file' set but not used [-Werror,-Wunused-but-set-global] drivers/s390/char/zcore.c:50:23: error: variable 'zcore_hsa_file' set but not used [-Werror,-Wunused-but-set-global] Remove both of them, since there is no point in keeping them. Reviewed-by: Christian Borntraeger Signed-off-by: Heiko Carstens Signed-off-by: Alexander Gordeev Signed-off-by: Sasha Levin --- drivers/s390/char/zcore.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/s390/char/zcore.c b/drivers/s390/char/zcore.c index 33cebb91b9338..e74f41f201099 100644 --- a/drivers/s390/char/zcore.c +++ b/drivers/s390/char/zcore.c @@ -47,8 +47,6 @@ struct ipib_info { static struct debug_info *zcore_dbf; static int hsa_available; static struct dentry *zcore_dir; -static struct dentry *zcore_reipl_file; -static struct dentry *zcore_hsa_file; static struct ipl_parameter_block *zcore_ipl_block; static unsigned long os_info_flags; @@ -354,10 +352,8 @@ static int __init zcore_init(void) goto fail; zcore_dir = debugfs_create_dir("zcore" , NULL); - zcore_reipl_file = debugfs_create_file("reipl", S_IRUSR, zcore_dir, - NULL, &zcore_reipl_fops); - zcore_hsa_file = debugfs_create_file("hsa", S_IRUSR|S_IWUSR, zcore_dir, - NULL, &zcore_hsa_fops); + debugfs_create_file("reipl", S_IRUSR, zcore_dir, NULL, &zcore_reipl_fops); + debugfs_create_file("hsa", S_IRUSR|S_IWUSR, zcore_dir, NULL, &zcore_hsa_fops); register_reboot_notifier(&zcore_reboot_notifier); atomic_notifier_chain_register(&panic_notifier_list, &zcore_on_panic_notifier); -- 2.53.0