From patchwork Tue Feb 4 12:05:49 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: 13959001 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 1E98E21505A; Tue, 4 Feb 2025 12:06: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=1738670782; cv=none; b=VlXbMobqzBzoyxO50DKAyEl44XIMJ1qLnbDUkp5By3OdGCV8bS6V6wX4TlMwYO9cXzaoRjX/ssB9taxzKaeLmoOOwLoO71foIT8uQtEkzqV8VQ77527wMman0Gc6o0XzmmNxRidpvtgM57sjPt3KhtBN4saT6l1VvHzOIG4sU5M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738670782; c=relaxed/simple; bh=HgzmgdwkiaSDMiXf6XJkivPi1ft0DfM/ZF/QqgcCG+g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L+JRAreCueYUZVHSOeWDRwo/OqsF/jM5rk9C/NQlvsLy82buCtptHhvhYKQdVhJdHlih2TKm7K1H9dDKyY+pmli/HDLfonp7068tycW82tyqxW8LxeiMlFYWoHtJeXMcE+9E+GtC32cTDFSm914Ivlhcgn67HiSgXV6LN+hkoYs= 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=wxK92Pp/; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=yQ4Xipxd; 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="wxK92Pp/"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yQ4Xipxd" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1738670776; 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=roEAdS7GRy2NoEBIGEVrgoE1SBCHacklusP7n5QqKZw=; b=wxK92Pp/r55qShjOBSU0exdyhKwvjhH/7KR82nwP3boIrWI8DOEcXNzmEI/GLTMuKG7f1x PkfpPhNlp694PQNIE9JxVVF0RpWJxqD5aD6dRJTgL2KBbo8+mjoASHji5u8OaqosLIhZYS I2WpvfYH8WEIAS9wTwTqnQ1ZQeUtq8sBWEr2MyVahakVyltRaNayKDqCym7YG/4nfSw//J jDeFgHHpiRWHn2Is5gVbkmGRrNzNZfoZVhXHD66WQ5mmpA0BX49BQFIK5vtjr3EN7X+E2o 1ySk39mXl3dnbZHdIAb3DZtke3+Trc/kfWfTXMt0py/huHKrI8hV6DQZc87wzw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1738670776; 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=roEAdS7GRy2NoEBIGEVrgoE1SBCHacklusP7n5QqKZw=; b=yQ4Xipxdi05s4pgfjTsItukvErNFC8tYL880xKiWzRwOe2Q1tERM9two9suuB4Vi5MstXN KvE5bLTn6wcq8sBw== Date: Tue, 04 Feb 2025 13:05:49 +0100 Subject: [PATCH v3 17/18] vdso: Remove remnants of architecture-specific random state storage Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20250204-vdso-store-rng-v3-17-13a4669dfc8c@linutronix.de> References: <20250204-vdso-store-rng-v3-0-13a4669dfc8c@linutronix.de> In-Reply-To: <20250204-vdso-store-rng-v3-0-13a4669dfc8c@linutronix.de> To: "James E.J. Bottomley" , Helge Deller , Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Anna-Maria Behnsen , Frederic Weisbecker , Andrew Morton , Catalin Marinas , Will Deacon , Theodore Ts'o , "Jason A. Donenfeld" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Huacai Chen , WANG Xuerui , Russell King , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Bogendoerfer , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Madhavan Srinivasan , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Guo Ren Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-s390@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, Nam Cao , =?utf-8?q?Thom?= =?utf-8?q?as_Wei=C3=9Fschuh?= , linux-csky@vger.kernel.org X-Developer-Signature: v=1; a=ed25519-sha256; t=1738670761; l=1909; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=HgzmgdwkiaSDMiXf6XJkivPi1ft0DfM/ZF/QqgcCG+g=; b=yVdvyiouTW57SLrpHIPuIBmbt1VBsh4joVh2d8Xlt05DpEfmNT3KQwIdq5mEUqPx6MKl9Ku1M G3pd8yFEhW/CSALC2XFknkosOiA6chnJdCA+jrJ2s0Bn8d4Kmz2asPR X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= All users of the random vDSO are using the generic storage implementation. Remove the now unnecessary compatibility accessor functions and symbols. Co-developed-by: Nam Cao Signed-off-by: Nam Cao Signed-off-by: Thomas Weißschuh --- include/asm-generic/vdso/vsyscall.h | 5 ----- include/vdso/datapage.h | 1 - 2 files changed, 6 deletions(-) diff --git a/include/asm-generic/vdso/vsyscall.h b/include/asm-generic/vdso/vsyscall.h index a5f973e4e2723ef1815c88a7846f7c477e3febd9..13e2ac3736ee9b4aea6800117997ee165a7e2b9d 100644 --- a/include/asm-generic/vdso/vsyscall.h +++ b/include/asm-generic/vdso/vsyscall.h @@ -32,11 +32,6 @@ static __always_inline struct vdso_data *__arch_get_k_vdso_data(void) #define __arch_get_vdso_u_time_data __arch_get_vdso_data -#ifndef __arch_get_vdso_u_rng_data -#define __arch_get_vdso_u_rng_data() __arch_get_vdso_rng_data() -#endif -#define vdso_k_rng_data __arch_get_k_vdso_rng_data() - #endif /* CONFIG_GENERIC_VDSO_DATA_STORE */ #ifndef __arch_update_vsyscall diff --git a/include/vdso/datapage.h b/include/vdso/datapage.h index 46658b39c28250e977f5a3454224c3ed0fb4c81d..497907c3aa11fcae913f62ef7373bbe6a1026bd6 100644 --- a/include/vdso/datapage.h +++ b/include/vdso/datapage.h @@ -152,7 +152,6 @@ struct vdso_rng_data { #ifndef CONFIG_GENERIC_VDSO_DATA_STORE extern struct vdso_time_data _vdso_data[CS_BASES] __attribute__((visibility("hidden"))); extern struct vdso_time_data _timens_data[CS_BASES] __attribute__((visibility("hidden"))); -extern struct vdso_rng_data _vdso_rng_data __attribute__((visibility("hidden"))); #else extern struct vdso_time_data vdso_u_time_data[CS_BASES] __attribute__((visibility("hidden"))); extern struct vdso_rng_data vdso_u_rng_data __attribute__((visibility("hidden")));