Message ID | 20240219153939.75719-10-anna-maria@linutronix.de |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1369546dyc; Mon, 19 Feb 2024 07:52:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVkAjG+WXuayKYnqW5UK0g6Of3dVHIqWLcQCdtSLQR27EDjtgzWUkt2ybaK39zqsZs/RZG5+pCh0v2wfrRn0mD+dZQZQw== X-Google-Smtp-Source: AGHT+IGE/XSC8Y6Qhpt3ok6mlrrC0cNqHEPxvtGR8xjuJ9LbCUG9+YGEpUIrRWRqLaEgI9btwOBH X-Received: by 2002:a05:6a20:9c93:b0:1a0:931c:a152 with SMTP id mj19-20020a056a209c9300b001a0931ca152mr5369831pzb.21.1708357927639; Mon, 19 Feb 2024 07:52:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708357927; cv=pass; d=google.com; s=arc-20160816; b=wmgMBufbsHjQydKFZb4qLERMDTFjaJYcddZrpstArlpYR3GGqdRrjf93jT7cxxltuU iHLK2d1dy1a3JQ2rSF2dgq/+8ttAeG/m3fmcETbFzYMizCzWs6hYHOoRpZ1XJbib3Esv t1zp/guzbvNCUgg8w4Q4YRdQGTPsF7m9fiaguKf28wxpiHmjLuKPPgcIBkf1e2Ny0maQ Issgccwdj+MemIn6jUtvlpd89YyEOSrcH3UrCLdmgGaOhgm7PYBz4nUmw0zlstZrLphF 5YpQNjjgiMVWwmIJypGMtS/KjluLOqin3Ger4F0WIbBGtl37htUAkCHv2beCVYCKXRAb TWgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:dkim-signature:dkim-signature:from; bh=p9YNrD7tVQTrXaMc0HLx7Bog9I9Y+lcWW3PT+KiRz7g=; fh=AcSusxu0U2JrrOgXdPRXnbdeW/+GOCoXVRAjAAVg4aY=; b=zbZ4Ml9tAomHZ5iOlZi2+GQoMOwg7avCqGD7h5RijmrpgjRLDE2BW3N/SGod6MQkaR kT2LH07snumpAQLaqdQs3IuMGlJtKoDEfuaUs599U/SOr3+BYj0Wi2g3L19GXnWIS4CA FWqWqWQwtBLiCdww2WrLjCmhjKjx3VoWELQ2pf/FIE8s8joWEDrbjm7vXRdQidyM2BaF E69BAhP87Xdi9Y7MuN8FPlVA+MO7xz0qvhLtPgyX+uiam1lgMnxV+K7HIFlzjMrN3MWj BD2eiwX5jjQ/oqD0XhlfdHfalkbIlKx+uQ+jAWUG1R1/zu2rd+cJOlPQaqPnMQIHVw7V udIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RJ3a/vYz"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b190-20020a6334c7000000b005dc8a59e303si4584167pga.111.2024.02.19.07.52.07 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 07:52:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="RJ3a/vYz"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71604-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id D35ACB253EE for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 15:42:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 909DE44C6A; Mon, 19 Feb 2024 15:40:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="RJ3a/vYz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="H2nFv2f5" 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 427623D3A6; Mon, 19 Feb 2024 15:40:08 +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=1708357210; cv=none; b=n9Oig5dSyZLndSHXTjNIe5viFWMCN07Oo4C3JrBKbJT8wk/cVxa4NYZOszg0rw0UdAo6gGncrgp+47MKG6Y/4NXcKJr5q1duq4nAfDv/JaIo8aGcUiYMp+km/0yUK/0gzXAsKx+Jvq7g/ahjfk/wAeLjVMNtE+LE61F9xKc3ZPk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708357210; c=relaxed/simple; bh=Egt3w6vKpDeIpAiXo8C6D0ps5U8rKblI/NKKhpwZTB8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k4s6GfogSiuYgEuEhIuRzZgtZm2QMvieFqMGxOrikUDrokoMez2vTRTV1li6hWP2vpcEkV79jag9K5ZVOicxBi4+Q6PYiG4iyo+4Gxf+PYaepAZSiyIijz14WvJuemfcy7FnNi/JzTTH7ZWWBzSsCOR+FbT8UTKYKkUtDQUCw0g= 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=RJ3a/vYz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=H2nFv2f5; 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 From: Anna-Maria Behnsen <anna-maria@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708357206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p9YNrD7tVQTrXaMc0HLx7Bog9I9Y+lcWW3PT+KiRz7g=; b=RJ3a/vYzw3wkv0lfjHWOSa3CQH7dtEAd1TsC2GWp6zruN6abfp84kgYTK1tOfgdD1DwORD Rodida/DODREXt5n6/TNYKea1SQifVc/5cLMdEQRveMD2Nw8H/M7SAVIdhvupthNgbkFxP 9kSMPEiLmverJWsp7bMt/cfJDAO6kMt+I5wIm4WZkr8lNHDcIGgRUEFDsFNDpzqjjvfpuG HjZDrKqAJJaqlZJ8DfzuObIdrdPV3WxO04sG50UFPvM2VHIMRYjFw39DyKUpxQQKOxy2SA 77fMzo1a1QxMcAXAFvNWlZa6fGwQRjQUf9STwBcs1im13Q9FRgc/J04tfWqCNw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708357206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=p9YNrD7tVQTrXaMc0HLx7Bog9I9Y+lcWW3PT+KiRz7g=; b=H2nFv2f5VzCxp5vwhmWZv4sSB+CxOkUflxB3/09HSK9yyjsJkr2/6UMNUpeu5OPNOcFu/p G48PpkvxupQND0BQ== To: linux-kernel@vger.kernel.org Cc: Andy Lutomirski <luto@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Anna-Maria Behnsen <anna-maria@linutronix.de>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, linux-mips@vger.kernel.org Subject: [PATCH 09/10] mips/vdso: Use generic union vdso_data_store Date: Mon, 19 Feb 2024 16:39:38 +0100 Message-Id: <20240219153939.75719-10-anna-maria@linutronix.de> In-Reply-To: <20240219153939.75719-1-anna-maria@linutronix.de> References: <20240219153939.75719-1-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791343122521475701 X-GMAIL-MSGID: 1791343122521475701 |
Series |
vdso: Misc cleanups and prevent code duplication
|
|
Commit Message
Anna-Maria Behnsen
Feb. 19, 2024, 3:39 p.m. UTC
There is already a generic union definition for vdso_data_store in vdso
datapage header.
Use this definition to prevent code duplication.
Signed-off-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: linux-mips@vger.kernel.org
---
arch/mips/include/asm/vdso.h | 5 -----
arch/mips/kernel/vdso.c | 2 +-
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/mips/include/asm/vdso.h b/arch/mips/include/asm/vdso.h index cc7b516129a8..afb03d45bcd0 100644 --- a/arch/mips/include/asm/vdso.h +++ b/arch/mips/include/asm/vdso.h @@ -50,9 +50,4 @@ extern struct mips_vdso_image vdso_image_o32; extern struct mips_vdso_image vdso_image_n32; #endif -union mips_vdso_data { - struct vdso_data data[CS_BASES]; - u8 page[PAGE_SIZE]; -}; - #endif /* __ASM_VDSO_H */ diff --git a/arch/mips/kernel/vdso.c b/arch/mips/kernel/vdso.c index f6d40e43f108..dda36fa26307 100644 --- a/arch/mips/kernel/vdso.c +++ b/arch/mips/kernel/vdso.c @@ -24,7 +24,7 @@ #include <vdso/vsyscall.h> /* Kernel-provided data used by the VDSO. */ -static union mips_vdso_data mips_vdso_data __page_aligned_data; +static union vdso_data_store mips_vdso_data __page_aligned_data; struct vdso_data *vdso_data = mips_vdso_data.data; /*