From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387977; b=W4Rw1IsRjrTlcxSDn+bEn5nWkYIuvTd29D5U2mdwswnljr1JdA3lLif+S7prkEymp+bq VPNSrGwkGvgukg7d28KxnMP0mrsnorOP/gMvQqYRbibBgXyeyt5tKnu4RENtpI4kQlbP6 rBqg8iR1873RC9bsN/toXdn2JptvIWFkoSmf3J+2olps1HfLrDS5dj6VNYS5VTioag7cl jHVrwO2cx0uG96AlC5zuSVbO8wJ5ktIbN8wHCzSe39xd3ZBlSA4Kd9ns6FW5xD0SvKbu/ 8eCpklSgr7to0Hxa9/cJlVVkUf2zc5SlHfT0ga38ufV1HYcMRIYYO3sagi81x+stEiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387977; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=qGUR1VcxASxzCcPS1UFrGhRySmtOB0ph9HhFXRdYT80=; b=MXDNfo72M+QfJhIVrMKjES2zZQDQ/cv7/154XrMOm5b+T8iTUNGmAO5e+4y0/bNwxD7X CcPoh5Aq0C7VDjxHtXojZS/5wxr94OzyEDKY5mM7GXfNnpcVf418uZT5Z+TKPdmqyOuPz RZfalWk2aIyLmEIQFJNGQ4+xHjySJ9SFIN6DsOhvs6I7Q5e4Up1uWYKBrzRmNTX9hha9X ZS2fYoDenwW5nOoNwkK+MWJk0FTgnQEFZZHS6pxlQA7cNfi/4gsJQ9uL9xvoQbFXdQR6p lOD4f63EIWmyu3OAqolrWHl/atwQYv3q1J2nKoApsLbDfuL1J1FJcLP6McqpTpzbVVA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=sf6USuie; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 84061606A32D; Fri, 4 Dec 2026 12:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=sf6USuie Received: by smtp.kernel.org (Postfix) with ESMTPSA id F13B81F00897; Fri, 4 Dec 2026 12:39:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387977; bh=qGUR1VcxASxzCcPS1UFrGhRySmtOB0ph9HhFXRdYT80=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sf6USuie+C2ReQ3klzJ3iP0Qd4KnDR3RrDQSoRYbbh/TSzp4R6Wq+RJ2X53A0nSRd Q/jYmrCZ3PbJgwtg//+DBbA9qcYgisR3Xixg5ThR1bU57QGBAy2EZtoTZolVB+yL5X vCmJEcqzLZABmXAagVAaUDkWsPKFlvbXlDAYMKc0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Sasha Levin , Andrew Morton , Shuah Khan , Alexey Dobriyan Subject: [PATCH 6.1 0435/1059] selftests/proc: proc-pid-vm: fix unused variable warning on non-x86 Date: Fri, 4 Dec 2026 18:59:26 +0900 Message-ID: <20261204100655.587854001@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c4d9005e7e1ee6ce277f47cf53d44fc5b90b287b ] g_vsyscall is only used by the x86_64 test, so clang builds for other architectures get: proc-pid-vm.c:224:21: warning: unused variable 'g_vsyscall' [-Wunused-variable] The vsyscall strings next to it had the same problem and were marked __maybe_unused for it. Move all of the vsyscall variables into the __x86_64__ block that uses them instead, and drop those annotations along with the local __maybe_unused fallback that was added for them. Link: https://lore.kernel.org/20261012115330.3777115-1-sashal@kernel.org Fixes: 17415606f9d8 ("tools/testing/selftests/proc/proc-pid-vm.c: test with vsyscall in mind") Signed-off-by: Sasha Levin Signed-off-by: Andrew Morton Suggested-by: Andrew Morton Assisted-by: LLM Cc: Shuah Khan Cc: Alexey Dobriyan [ sashal: Dropped the #endif after make_exe() and the #ifdef __x86_64__ before the vsyscall variables; the include-block conflict was resolved by keeping this tree's own includes. ] Signed-off-by: Sasha Levin --- tools/testing/selftests/proc/proc-pid-vm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/proc/proc-pid-vm.c b/tools/testing/selftests/proc/proc-pid-vm.c index cacbd2a4aec91..fb4b4b648240a 100644 --- a/tools/testing/selftests/proc/proc-pid-vm.c +++ b/tools/testing/selftests/proc/proc-pid-vm.c @@ -209,7 +209,6 @@ static int make_exe(const uint8_t *payload, size_t len) return fd1; } -#endif /* * 0: vsyscall VMA doesn't exist vsyscall=none @@ -225,7 +224,6 @@ static const char str_vsyscall_1[] = static const char str_vsyscall_2[] = "ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]\n"; -#ifdef __x86_64__ static void sigaction_SIGSEGV(int _, siginfo_t *__, void *___) { _exit(g_vsyscall); -- 2.53.0