From nobody Tue Feb 10 12:57:57 2026 Received: from minute.unseen.parts (minute.unseen.parts [139.162.151.61]) (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 345D91A841F; Fri, 31 Jan 2025 10:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=139.162.151.61 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738320106; cv=none; b=c6DXQpHtFaUhoTJhPZvjwEfZNQtjhMjtzSc4Pw+dKiVSu05azqmJ8SMwi1UbWIxVqveKNrPTCNGf5FkuIN6Hegg6dkOHplAmUIxwCtK+TRQYsmTRukJz2qUoKwpc3yhfJ9v7HV7WR6GCZcd8nzEmSSufxK2BOxCjH2xWGAgW1AQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738320106; c=relaxed/simple; bh=2smcxiM5XxvdBYtmUPSHoVVdF7QRv39VYQIaMXNvlQw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eZEpdS48/NxBexZMqqx5Bn9r7JSjs3BN049TXLaX9zhSsf3KsIOPb8RiM4bdFWm22mtsMgpcoOjisKVT36ZGkRbH0Az6NC55z7TurcnNkhx0XsB1N7cUAMQl/5liz9pgJ25u9wQHAIlayt2QuDIt45a/uRdDGlfHvHi6gy8CfOk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unseen.parts; spf=pass smtp.mailfrom=unseen.parts; dkim=pass (2048-bit key) header.d=unseen.parts header.i=@unseen.parts header.b=tK1KFcJK; arc=none smtp.client-ip=139.162.151.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=unseen.parts Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=unseen.parts Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=unseen.parts header.i=@unseen.parts header.b="tK1KFcJK" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=unseen.parts; s=sig; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w9J9KG9gtYSXkPS4T/DDE4Wq8DI7ifOopO6LJW54POY=; b=tK1KFcJKIm0EeRPu8gwy6D67N0 FM/hLWvKySDnvfiE1hi8n9pC6KQ0Itczn0SUpeKwvboQ3ftMPsVuwjLABM1hTLsqe5o9ahJJKOZGO ywb2QorCbUhps8R3J0Z87+8cW3ta8VYC0eh0HYieFFEixM5+wqy9/AV6+Q18BhBdH/KZVS2cZ/TfN AH04rDbRsf3biIJqBVYW5/ZNs1BnYAKn1muF075JwQaa+LeFbSuAPzMQlnWikv5f+DSX7PCaaCOvc ZdI46NqGAHlfaecgRyZ+JCccJhAWv7EhNR6pYHqxFNVWOYmooG/UXOdSu5CIoX1KEvgdcjYomYYX4 Wew0Ztyw==; Received: from ink by minute.unseen.parts with local (Exim 4.96) (envelope-from ) id 1tdoSo-0002sX-0L; Fri, 31 Jan 2025 11:41:30 +0100 From: Ivan Kokshaysky To: Richard Henderson , Matt Turner , Oleg Nesterov , Al Viro , Arnd Bergmann , "Paul E. McKenney" Cc: "Maciej W. Rozycki" , Magnus Lindholm , John Paul Adrian Glaubitz , linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH v2 2/4] alpha: replace hardcoded stack offsets with autogenerated ones Date: Fri, 31 Jan 2025 11:41:27 +0100 Message-Id: <20250131104129.11052-3-ink@unseen.parts> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250131104129.11052-1-ink@unseen.parts> References: <20250131104129.11052-1-ink@unseen.parts> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cc: stable@vger.kernel.org Signed-off-by: Ivan Kokshaysky Reviewed-by: Maciej W. Rozycki --- arch/alpha/kernel/asm-offsets.c | 4 ++++ arch/alpha/kernel/entry.S | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/alpha/kernel/asm-offsets.c b/arch/alpha/kernel/asm-offset= s.c index 4cfeae42c79a..e9dad60b147f 100644 --- a/arch/alpha/kernel/asm-offsets.c +++ b/arch/alpha/kernel/asm-offsets.c @@ -19,9 +19,13 @@ static void __used foo(void) DEFINE(TI_STATUS, offsetof(struct thread_info, status)); BLANK(); =20 + DEFINE(SP_OFF, offsetof(struct pt_regs, ps)); DEFINE(SIZEOF_PT_REGS, sizeof(struct pt_regs)); BLANK(); =20 + DEFINE(SWITCH_STACK_SIZE, sizeof(struct switch_stack)); + BLANK(); + DEFINE(HAE_CACHE, offsetof(struct alpha_machine_vector, hae_cache)); DEFINE(HAE_REG, offsetof(struct alpha_machine_vector, hae_register)); } diff --git a/arch/alpha/kernel/entry.S b/arch/alpha/kernel/entry.S index dd26062d75b3..6fb38365539d 100644 --- a/arch/alpha/kernel/entry.S +++ b/arch/alpha/kernel/entry.S @@ -15,10 +15,6 @@ .set noat .cfi_sections .debug_frame =20 -/* Stack offsets. */ -#define SP_OFF 184 -#define SWITCH_STACK_SIZE 64 - .macro CFI_START_OSF_FRAME func .align 4 .globl \func --=20 2.39.5