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=1796385315; b=tKz9WNadEcfYVcB4Njm1RbymRC/SobM8hwZPtPG5X4Cl/VZZcIotJQSMNz/ELmRDpn8P Tg4WTacdcZhHTYIdI2Wx3uhEJoLLwnEOMlWBf+9QfC1GC+IrYddoDin7Mb3qHwX5ilSYt W1StEH78bEPEy8o9Ox7WlXsPdMuiFuNA0blxhJ2i66IGyUpxENRtkxe4g2eVwWQ+Mokol CO4BNqgeDnX8HF0TzM6NfwjQorxcETdcjyCUr76/VS+jdti75XH/vbp+s86Atob9Z3x8e Cyz+xBQBBrgUgBI7YGs8tMkvkSs2LpgNZygBxzdxuCJoFS3qqK82emjdywrW/Leq6sw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796385315; 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=cy9MCusKP40fLC+V/OYEvzAJdwOAxsPgVuVr5THPdcg=; b=AKErIGBfNkPT8HO47h1ljiLB1RN2TlePVAc/9rCdM6Vv9rPJAsqdGnLRyVzs+bxAMtYW tLLKMENCvtgVPA8rRF8t0vMzSukgr/c3p3vAFgTjW2PBdBbtgfuB7cEfHjaBopPtteji/ ecoCbIJ9EsuMwVpZaGZL5Kvx9tCePu7bEnSk9iHxyCQBLjqOudAabSXQrnNsbJpas8ZQr cu+e/q2OrQkYxV2R02nPlUzGuGktfls4XaI7yARpUOYI6CfguJneqnEDursas4t2BvTh2 +PKsQ7njnDv49tefurjI6f8MvBL06+egDT+KFCQx8DZOV7i2ubLGVGKGmb62KgFMbhw== 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=bjIBzqHB; 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 29E9B606A32C; Fri, 4 Dec 2026 11:55:15 +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=bjIBzqHB Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A4A01F000C2; Fri, 4 Dec 2026 11:55:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796385315; bh=cy9MCusKP40fLC+V/OYEvzAJdwOAxsPgVuVr5THPdcg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bjIBzqHBmBwkdpnnjmIY+28TwXorDhmS5mog7jSnig5C+GQs93FYvpuxVv2UTXy5S aYeWuauBSR392wPyRFxqaDEwvKXmPKM+83LrcDj/mPjXi7wLcThk4p8jL9f2ME0mpO jsLB8fOWemRo/u2ey43nnwQekwNPoiJGqH2L1qv0= 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.6 0455/1167] selftests/proc: proc-pid-vm: fix unused variable warning on non-x86 Date: Fri, 4 Dec 2026 18:58:02 +0900 Message-ID: <20261204100713.864739957@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100702.047403948@linuxfoundation.org> References: <20261204100702.047403948@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-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 second #ifdef __x86_64__ and its preceding #endif to move the vsyscall variables into the x86 block, keeping the local ../kselftest.h include and omitting __maybe_unused removals the tree never had. ] 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