From nobody Sun Feb 8 19:27:50 2026 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 2A0DE1607BC for ; Mon, 1 Jul 2024 14:48:16 +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=1719845297; cv=none; b=R81AjPB8dcbUuYUOX7jZdZkAwa5iH9cn2CA8MmtnDSI+UcZgzjb7AawvwbMdoPGLme7/XkXUl4/eOWEzqAu5ZTRAqa6WNNVyaylcYeKzov37FXjFBr/Jz1K02zSZMcuc15zS19PdlvdRMmyFtniFxXIJcTzDAn4UQDPmPI2pwqA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845297; c=relaxed/simple; bh=Fp8EPeDN52tg3Jcl/xJwedAigY0E86q8zRKt6DtFLvg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TJlOa9OAKohJtJuWX9b9uuLxOVIA2ZjcXT41cPAfPGi/Xm0zOxSa3CbHvMJXGrzRJQZP/sqgkkueaFMbIRx0ngd5ZUnd2I/xE2PtbAkcR3MJK5ReF4oFyku45jmwSW/mColBYLW//4NMuftSFmEFK8AVZn5lH9jK2K+nuux4D2U= 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=HNJWveJo; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=2kN4qlaW; 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="HNJWveJo"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2kN4qlaW" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719845291; 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=2nYd93wvJq3D1U+iwnOFvX6unDdKeJUIZ3e8ELsAkKY=; b=HNJWveJowzrrmmsE610z/8fExc9ltGjqcG7gvd24K5QyRWqB1GQBOoF0xm+t7jMMpzX60s wP1MeSG6TdWotDhgmKFUZAFcxYGr1UhCUb87gbWE1cSacQqaCwKhKD4WkkkFkkG6zlnTjp rdeEFgx9m+9k7djBO9eeIFHhYxHlo/zwkVxvvmkANVChlCiKw5GeGE3uINqjHbrXadRjqn zHr3kB/a41UYHANfSBFGVgQMETktPN6NoHa6y4cIZLmbh62AJK+lv1ZTSu/XwZIGmUFkSu uWa9CzzHjkdcWlesuTJ0cISjFoN4jHUbjcMEzfCHY10TIms1ESyIndJhc7HuQg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719845291; 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=2nYd93wvJq3D1U+iwnOFvX6unDdKeJUIZ3e8ELsAkKY=; b=2kN4qlaWJ8PQLY4Dn9psAnmBaz17X4129ztlD7hqx4kTss/ZRdEPeNJW3UV4Wm9ELvpbpu FQBQXmWvatmhX0Dw== Date: Mon, 01 Jul 2024 16:47:54 +0200 Subject: [PATCH 1/5] vdso/gettimeofday: Clarify comment about open coded function Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240701-vdso-cleanup-v1-1-36eb64e7ece2@linutronix.de> References: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> In-Reply-To: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Anna-Maria Behnsen The two comments state, that the following code open codes something but they lack to specify what exactly is open coded. Expand comments by mentioning the reference to the open coded function. Signed-off-by: Anna-Maria Behnsen Reviewed-by: Vincenzo Frascino --- lib/vdso/gettimeofday.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/vdso/gettimeofday.c b/lib/vdso/gettimeofday.c index 899850bd6f0b..c01eaafd8041 100644 --- a/lib/vdso/gettimeofday.c +++ b/lib/vdso/gettimeofday.c @@ -140,14 +140,14 @@ static __always_inline int do_hres(const struct vdso_= data *vd, clockid_t clk, =20 do { /* - * Open coded to handle VDSO_CLOCKMODE_TIMENS. Time namespace - * enabled tasks have a special VVAR page installed which - * has vd->seq set to 1 and vd->clock_mode set to - * VDSO_CLOCKMODE_TIMENS. For non time namespace affected tasks - * this does not affect performance because if vd->seq is - * odd, i.e. a concurrent update is in progress the extra - * check for vd->clock_mode is just a few extra - * instructions while spin waiting for vd->seq to become + * Open coded function vdso_read_begin() to handle + * VDSO_CLOCKMODE_TIMENS. Time namespace enabled tasks have a + * special VVAR page installed which has vd->seq set to 1 and + * vd->clock_mode set to VDSO_CLOCKMODE_TIMENS. For non time + * namespace affected tasks this does not affect performance + * because if vd->seq is odd, i.e. a concurrent update is in + * progress the extra check for vd->clock_mode is just a few + * extra instructions while spin waiting for vd->seq to become * even again. */ while (unlikely((seq =3D READ_ONCE(vd->seq)) & 1)) { @@ -223,8 +223,8 @@ static __always_inline int do_coarse(const struct vdso_= data *vd, clockid_t clk, =20 do { /* - * Open coded to handle VDSO_CLOCK_TIMENS. See comment in - * do_hres(). + * Open coded function vdso_read_begin() to handle + * VDSO_CLOCK_TIMENS. See comment in do_hres(). */ while ((seq =3D READ_ONCE(vd->seq)) & 1) { if (IS_ENABLED(CONFIG_TIME_NS) && --=20 2.39.2 From nobody Sun Feb 8 19:27:50 2026 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 4114216C69E for ; Mon, 1 Jul 2024 14:48:16 +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=1719845297; cv=none; b=W8zhHbrNKXqvlLvTukBU19AmzvRnQwYOM1kHwsis75T1tZfujblKBhOHCL/45yt+JJu0RYVfdHuUD8QIHHVaJaGM5aqbsjsmJdSBq0Jj8U1PyVDGj0KSnGw7IzkNKvP3t200IfWWeHxGjqogK3EIa2MVPP0lsqGgPoHYk9fDSvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845297; c=relaxed/simple; bh=uPYmhri3xmLQXRSCzKBJCGTyjaB0QtlZdBJLGjE5stI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ckSrHMewnCRhr90pUaTjcUGYwSfouT4OmtFfWx69py+1f//7Tu3RJ3N+5/AXTuH4iFnWNRZw+8mQWs9k13eC3IVLC6kWuwt7niFzGRashcF6eC9iJIxrMlPLDTZ/+TBH3/NWFvlR0OS/o/qET/CJ4kdnzdrRVHU6vX+NuG/yVFY= 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=Wmt1HGVA; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=UVmXqcr4; 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="Wmt1HGVA"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="UVmXqcr4" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719845291; 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=fjJI+Isbe1o3BN2CZY4+tqaGo4HhsuAYWg7sVXb7zMA=; b=Wmt1HGVAaQqdjkytzlE/WlFf7j3FUWnyMzG4KA1Vr5t+Tvay6YnKw/iWGxYzEkq/U8xezi EsyeEuUlbqMSR8yZDL4j8fXVERJy12ADJh4btwf0GolKFwP9IFMc6Veu/vQW8IDxjJF8C8 ruC9Xm11oR9SXHJi/3uuVIbNRVSjrrIZVwdu1Dkx1ePNXmFPn3jmhTr4Jvah68PqcbPCcP eeIjJR+dhRnkkUbQO+Cn+qp9bK3fgE9nWlLarOKf2jjGDbdHb2hWPoQ8rnuPl0rL0muJNv IIuPDn6P0x+yCdnQBv5rMRwWTmDAC/TY9LqUK7XH1fsEZ30Yr69MHooBmQa7yA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719845291; 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=fjJI+Isbe1o3BN2CZY4+tqaGo4HhsuAYWg7sVXb7zMA=; b=UVmXqcr4MTFXkLc8dG5U7eqduCyNN/yQp7ohWZyHReHfnFJjmq4+1oed3OTWrKMI5ZVDer Zdqr542sssNqqGCw== Date: Mon, 01 Jul 2024 16:47:55 +0200 Subject: [PATCH 2/5] vdso: Add comment about reason for vdso struct ordering Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240701-vdso-cleanup-v1-2-36eb64e7ece2@linutronix.de> References: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> In-Reply-To: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Anna-Maria Behnsen Signed-off-by: Anna-Maria Behnsen Reviewed-by: Vincenzo Frascino --- include/vdso/datapage.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index d04d394db064..7647e0946f50 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -77,6 +77,10 @@ struct vdso_timestamp { * vdso_data will be accessed by 64 bit and compat code at the same time * so we should be careful before modifying this structure. * + * The ordering of the struct members is optimized to have fast access to = the + * often required struct members which are related to CLOCK_REALTIME and + * CLOCK_MONOTONIC. This information is stored in the first cache lines. + * * @basetime is used to store the base time for the system wide time getter * VVAR page. * --=20 2.39.2 From nobody Sun Feb 8 19:27:50 2026 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 2A13216B750 for ; Mon, 1 Jul 2024 14:48:16 +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=1719845298; cv=none; b=HVKTJ1YOPElkR7woyZ9Dwg2AJmLPWVWzDQ237GBT+WoaHpENkRs8r65DLyjxMp2YPspSBs7M6p1JP/Lfwa6zuOYNb9zluKpbX5KW8v8tq5tlbDi9bpMXmpeo6RSD2+UrGR7s36BlsUSxH8ah7lAwuMLHEUIMUOyS8i3Xsb620N8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845298; c=relaxed/simple; bh=KMdlSbyb4NsNI3rTiPG8oevCTZZnhbc+Qzk1ZrF8c5c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Xmv/v3npEyl6eigOIjm0VKc4BM8rlwk8ek7XIymzqwXgPN0yTCjgc8JHDo/ha0Z235IC8F9LzEfyE/u9CdJwWZQEttw5HyfNWMv1Su9u8x50YyoxEUVd5cHAJ+Cuhg1JS/dYcibGZAryj5xs49pRr0BzgKJD7GzuHWx9pHTIlas= 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=gbErqakn; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fr+NpGOn; 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="gbErqakn"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fr+NpGOn" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719845291; 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=kkCuPWfmz0qjDDzuugfXpfeVLTD6IIY8TxeqYLTW/y8=; b=gbErqaknThVvaNjZvsj7OM47AWDkC7d2WlM3TRDP/vxN+magmuWTTkbsVMx6uXL73pzWYZ wraMC1Wsz5nrUTq9trvH2CXhvYF1PeW0/rqL1PV/wYXcckqNUzFWzhSN2NCc+wU1mfTqBy zNzqZ2KCo+FeOL+jESfRnKwgk3fAkuSpwn7KhnPHxvn6SY8auoNk4HYNrVHsSLbpXYCP1A nERrsaY23CIalsrUN2gP4EnkLRdsQXc4GOMC9bdICCkk/Yi0yMRbkHqVM2r4JgGOobnB5z 5dCLECmGHPtiULfSSaM69IK9Z4rpwcdKzLmY32Nq2u++q0wGCnD7cyrWeBgEdw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719845291; 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=kkCuPWfmz0qjDDzuugfXpfeVLTD6IIY8TxeqYLTW/y8=; b=fr+NpGOn+XuIqJCQumAaEnA45kxcXRrvvbBgUKpK49YHyFTRtWBKBnAcF+k9bNxl5uI1F+ iLyORSO3PZMOWhCw== Date: Mon, 01 Jul 2024 16:47:56 +0200 Subject: [PATCH 3/5] x86/vdso: Fix function reference in comment Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240701-vdso-cleanup-v1-3-36eb64e7ece2@linutronix.de> References: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> In-Reply-To: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Anna-Maria Behnsen Replace the reference to the non-existent function arch_vdso_cycles_valid() by the proper function arch_vdso_cycles_ok(). Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: x86@kernel.org Signed-off-by: Anna-Maria Behnsen Reviewed-by: Vincenzo Frascino --- arch/x86/include/asm/vdso/gettimeofday.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/vdso/gettimeofday.h b/arch/x86/include/as= m/vdso/gettimeofday.h index 0ef36190abe6..b2d2df026f6e 100644 --- a/arch/x86/include/asm/vdso/gettimeofday.h +++ b/arch/x86/include/asm/vdso/gettimeofday.h @@ -328,9 +328,8 @@ static __always_inline u64 vdso_calc_ns(const struct vd= so_data *vd, u64 cycles, * due to unsigned comparison. * * Due to the MSB/Sign-bit being used as invalid marker (see - * arch_vdso_cycles_valid() above), the effective mask is S64_MAX, - * but that case is also unlikely and will also take the unlikely path - * here. + * arch_vdso_cycles_ok() above), the effective mask is S64_MAX, but that + * case is also unlikely and will also take the unlikely path here. */ if (unlikely(delta > vd->max_cycles)) { /* --=20 2.39.2 From nobody Sun Feb 8 19:27:50 2026 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 2A1BA16C69B for ; Mon, 1 Jul 2024 14:48:16 +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=1719845297; cv=none; b=iXpE4MXQVPNwAQ2G3gz0qg109oCMWDS1PrCQRDcBPx8Jl7dJOE//1IlpQRFnEJFh7lwRK1+IJUeHE258njD3PXk5RD0CjnWPvXZ1g41n/o5VXhujTqAfOcFlNEfdM65KXuUep1R+vxmCU3PLh8IqYGbMFOCOBx1acFRH78g8EEY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845297; c=relaxed/simple; bh=4m6IQFozutLRp58djnWYUIxu0luvFjZhZv0Tfwlq8bU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HRo27ZUxN/9uto7adcbTJZx/MQxOGlt1fx0iIwyM+1fwATcFPcYhRh0WWITCl4EYRxpEUda642mMcmnIsi3gVXXbU0ca1V2eXAStQSSm5JwZyQOYRkseQ+kVP8iEgz8m4BbL5CC8wr8vHzG5U/bqCc0ZpMY1KPgaH6b4F8siuTM= 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=eKbBMRrU; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d/XG5mGU; 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="eKbBMRrU"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d/XG5mGU" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719845292; 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=Zl3L/H0hVP5FIiMNPME4ljyQbOQiPpTP2acmwCBwrew=; b=eKbBMRrUfIiuG0YRUZE7aBez4I420ZTY9knqG2rlkYJTOCcbVOlIOJEGgqJgEwknyVCBm1 FqK609jB3swlTca0sa3wQ9OQdouWmglBJH2WiiZBmo1YgDL0tntw2E/KwNwD9qtbyShWLn r35I4KExgjOyxk7sNBaaUnO0OaWK0yM5RZbXPg1EYH9I3EZqI/x+WxsHe5ya3X6DKnw5X2 WYpWWr4duhNbRaNWghLAJd3J8hNxrwYElTmnszLOF2Op5qdoAZGoExRArUIX68RwXXyOI9 lqIqmlfMv44/J45k3aPmCpvO8AHbAAJYq4onAXmuGPnwlL0qgAnrgwSSJiPrgA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719845292; 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=Zl3L/H0hVP5FIiMNPME4ljyQbOQiPpTP2acmwCBwrew=; b=d/XG5mGUqYTSrX1I7hRgk95MpfVKuN7GbZ44QXkJQvH2CDLMi96O1n7GXndv6M1piTpp3S ozyrZCrYx9F+aSDQ== Date: Mon, 01 Jul 2024 16:47:57 +0200 Subject: [PATCH 4/5] x86/vgtod: Remove unused typedef gtod_long_t Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240701-vdso-cleanup-v1-4-36eb64e7ece2@linutronix.de> References: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> In-Reply-To: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Anna-Maria Behnsen The typedef gtod_long_t is not used anymore so remove it. The header file contains then only includes dependent on CONFIG_GENERIC_GETTIMEOFDAY to not break ARCH=3Dum. Nevertheless, keep the header file only with those includes to prevent spreading ifdeffery all over the place. Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: x86@kernel.org Signed-off-by: Anna-Maria Behnsen Reviewed-by: Vincenzo Frascino --- arch/x86/include/asm/vgtod.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/include/asm/vgtod.h b/arch/x86/include/asm/vgtod.h index 7aa38b2ad8a9..a0ce291abcae 100644 --- a/arch/x86/include/asm/vgtod.h +++ b/arch/x86/include/asm/vgtod.h @@ -14,11 +14,6 @@ =20 #include =20 -#ifdef BUILD_VDSO32_64 -typedef u64 gtod_long_t; -#else -typedef unsigned long gtod_long_t; -#endif #endif /* CONFIG_GENERIC_GETTIMEOFDAY */ =20 #endif /* _ASM_X86_VGTOD_H */ --=20 2.39.2 From nobody Sun Feb 8 19:27:50 2026 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 754FB16C87D for ; Mon, 1 Jul 2024 14:48:19 +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=1719845300; cv=none; b=jFvTPL2JChNLF9Erv8bbawhA0k73QvW5yH1eRw2fky0i3zcLx5ACbmF35M9hbiC73vlcMT6q+h3+YiHjqp1CGJAQigUUxa+Wn7qG9fH0fjVcsrFbLztbGLCee60N+PyKoeXxZijCyvL7R63MyfNGXZ6N6QhvvtmkTdci4g86+DQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845300; c=relaxed/simple; bh=SYgRVnPjsl630yilbuRnpGAUJeaIBV/+J0S/e1J3xB4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=goRR9Xm2JQdzzu583AlDnJXok1A8QZMXiXyfMWOXwtYE9kjaNV+kH5Aq7tJof3yMwkMUGo830plfOzAMgSbsRKsm05jglObSxdzgm44IpJ0Oqzy9uGIqARtQU0b8bPt4NyAob6vLJyswG+fW6G6BUEdMyXPhQz7EWMWTj19zpzg= 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=afEDk/rb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=7lF3qe/G; 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="afEDk/rb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="7lF3qe/G" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719845292; 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=4/vJimB/iMVWFrYIKeqjkuH/g4JlGpsOob2zAFNI3PY=; b=afEDk/rbrrI3TN2JirF1W5wAkKg5qgrV/bqeLaa14n4719hBKwdBQnYapwcXceUXJuP5Zb zEdWe6Oc5UpjjwqjBlq3IoaC9jaPaNFC9b6f9F0imTpzILy3t0SDya8P3QObhnDstp75+l JTzbFF8FjvBqEx2FaBJ6XXJmcJaawpINeJppzgCo7lKEt5t8g7lLUmUMzIygIC00dSKqWo pHcCpZNVQrFA/Ng0jND4cGwFFKLKlNastm+kclh24TQN3qu/S317MJVmZ69zFaJZqwuMI2 Rj1hmTxFiOmohzFVUU1YsO8FIu5BGm9Sv7xuCdG/JeaZnjWGwzbB0+JbtTh2WQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719845292; 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=4/vJimB/iMVWFrYIKeqjkuH/g4JlGpsOob2zAFNI3PY=; b=7lF3qe/Gi5hel0ByjhS9WLkzo8NBwtxjCb/iXBffg05nhxGDeNldUiWjXFQREwgYwmC/ZQ QdMyo0L+ni9bbJAw== Date: Mon, 01 Jul 2024 16:47:58 +0200 Subject: [PATCH 5/5] x86/vdso: Remove unused include Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240701-vdso-cleanup-v1-5-36eb64e7ece2@linutronix.de> References: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> In-Reply-To: <20240701-vdso-cleanup-v1-0-36eb64e7ece2@linutronix.de> To: Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org, Anna-Maria Behnsen Including hrtimer.h is not required and is probably a historical leftover. Remove it. Cc: Ingo Molnar Cc: Borislav Petkov Cc: Dave Hansen Cc: H. Peter Anvin Cc: x86@kernel.org Signed-off-by: Anna-Maria Behnsen Reviewed-by: Vincenzo Frascino --- arch/x86/include/asm/vdso/vsyscall.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/vdso/vsyscall.h b/arch/x86/include/asm/vd= so/vsyscall.h index be199a9b2676..93226281b450 100644 --- a/arch/x86/include/asm/vdso/vsyscall.h +++ b/arch/x86/include/asm/vdso/vsyscall.h @@ -4,7 +4,6 @@ =20 #ifndef __ASSEMBLY__ =20 -#include #include #include #include --=20 2.39.2