From patchwork Fri May 2 12:40:19 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 887322 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9B6BB255250; Fri, 2 May 2025 12:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746189629; cv=none; b=mpNVS5uhSHUO0kA1FVbrn84yLv0jmQR68BEE2u0059mAI1PhO/9tC47BBNjKtgH1DGE0KLPJgYY+jDNvM/LmtwxhJqaRKiTe9FjLfZtNPCQelAsEXVLCcp2SE+6STqV4xG4d4wV2oyef3fvXkZdbk0V0rdTvC8fBQhpY92qnV+U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746189629; c=relaxed/simple; bh=br7krp9+8M4zKe0RpPB+/gmM+jV6iMTWKPSaZ5x3GfU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f1EqYlHXmLbfLxcwM4k2IuKVmpAyQ82YhMOteXnf3Hue9jFZffsQrxx+/sWvFIKWV18ZXAP+P8r4t1VbuR8SsIf7j3QlHwbdBfuDZSZg/NM+hTZ+4xRaQ+eMhwtHfnBiT4/jyevuCeWOmsjoKZCriDMHKG85Rb0RbkhFxrHavqY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=V+KrgAOw; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wXiVl8Yk; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="V+KrgAOw"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wXiVl8Yk" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746189625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fsLvWnvAGPHW8cTdtBfQSCkuvBKWmDlkApA1kk8SamY=; b=V+KrgAOw5PuLH8GdVzlBYkYvcH/FDHekDCyb6MKdd2gEPhsd46iMSJosMp/i2yKOkbApb6 iR+U/H9e2SBMX8diFCkvl5ppO3Sv3Ovv1L1Qeuxi+/kmrM8BgJua55ukXDvMUP6C2tEm5F 40RjmUjeb+jNNLZZRkEYLYRHPyQny9WxxqsMqlxgj+JmavnGTvRxGDefs9XW/vWg/gZMY7 HlpkcvmhOsgYlXuUuHB066OCfBZYSNC3oreK/+KD7FlSb42XSCghEQvMMp7yvHq/80yeD2 dAYL9Y5yVX9mW5dwaH7YGCJCugPwHRJpoKtVDAJrxhxiOk4oAiA1lHbpvcDzYw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746189625; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fsLvWnvAGPHW8cTdtBfQSCkuvBKWmDlkApA1kk8SamY=; b=wXiVl8YkuBpFTjbUra7q0bBu0jnw5OGh3rmSWgrp9MFi8Q+2IE5sxApZw2eJWNzJaodIEm hoxn5nq2Qk/S/GAQ== Date: Fri, 02 May 2025 14:40:19 +0200 Subject: [PATCH 7/7] selftests: vDSO: vdso_config: Avoid -Wunused-variables Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250502-selftests-vdso-fixes-v1-7-fb5d640a4f78@linutronix.de> References: <20250502-selftests-vdso-fixes-v1-0-fb5d640a4f78@linutronix.de> In-Reply-To: <20250502-selftests-vdso-fixes-v1-0-fb5d640a4f78@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Shuah Khan , "Jason A. Donenfeld" Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Muhammad Usama Anjum , =?utf-8?q?Thomas_Wei?= =?utf-8?q?=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1746189620; l=1202; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=br7krp9+8M4zKe0RpPB+/gmM+jV6iMTWKPSaZ5x3GfU=; b=TLpzHI9LeTS/mEEkxMznV8DaDu2giwQ86jopSAfLqJ32Lzr5PASkH2kIfAb5++g5gbqUyLytS 6pUtIXuAky8BC4tgzry1A86GVLijk+J8HHJ99Yx6GdaPB82pgwi9VZz X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= Not all users of this header make use of all its variables. For example vdso_test_correctness.c does not use "versions": In file included from vdso_test_correctness.c:22: vdso_config.h:61:20: warning: ‘versions’ defined but not used [-Wunused-variable] 61 | static const char *versions[7] = { | ^~~~~~~~ Avoid those warnings through attribute((unused)). Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/vDSO/vdso_config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/vDSO/vdso_config.h b/tools/testing/selftests/vDSO/vdso_config.h index 722260f9756198956f0dfccced907284b6851e76..5fdd0f36233742bc47ae79f23d2cfae5a0f56dee 100644 --- a/tools/testing/selftests/vDSO/vdso_config.h +++ b/tools/testing/selftests/vDSO/vdso_config.h @@ -58,6 +58,7 @@ #define VDSO_NAMES 1 #endif +__attribute__((unused)) static const char *versions[7] = { "LINUX_2.6", "LINUX_2.6.15", @@ -68,6 +69,7 @@ static const char *versions[7] = { "LINUX_5.10" }; +__attribute__((unused)) static const char *names[2][7] = { { "__kernel_gettimeofday",