Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1956385rdb; Tue, 20 Feb 2024 12:05:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQvI9LwWYJA7B8nn0UX2qH9T5ndc2IsGh8ssUfXne/iphmUhjAJl/cnoZoEa15nd1wQx7K28YMzY53F5h7Aoa6v0mVYrYfOwm83eXMWg== X-Google-Smtp-Source: AGHT+IGK8Xy68mkG/QwQMBsbIbaeNIpK5pKDBc2lAi4u4l7Y1b46t0QQTl9l2yKn7sV68UgqccFb X-Received: by 2002:a17:906:27d4:b0:a3e:b0b4:a83f with SMTP id k20-20020a17090627d400b00a3eb0b4a83fmr4461625ejc.6.1708459520804; Tue, 20 Feb 2024 12:05:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708459520; cv=pass; d=google.com; s=arc-20160816; b=sr2opVpcLySfgaQtONZk9QaxyAOKXWUvmdbMjsHpB7RsmLR6CcY02VHluqHhYhkVXd 7Hv2eyiCGAYftn4BWLUBJqD9BhsWU+RGZoNPgWugWhD7eIcyA4IQI1N7HFNiEC1JYcfD jiwBJRwosEPrir6wiHcy3DLwANgWcZEuAQCMjHKEztFrKriiW1iff3f7Boa3PpeFUNgA /u2p1JiNKH4U701oOkMv1V/uc3xq5nvdKBx4lDChJXNZNN1AZJEd+9yjZv/V5Q7dYDlx lbKvKkp1N1SyKswBLyzEIBsQodLYbEyOVxQVUhkDwOfWquu6ObX5VSyowObxQromoh0A Kzxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=V+PAS7/iXPjIql4qTvsf+2JNdjp8EdmiSMeG4dWW9k0=; fh=9TzET5t9qt7/NzJ5Qjz3uc/2R2GVPigMRGq+4RapPhI=; b=OKEraF3bPvNyYOuGuukyl4uPVoTS5qBb+2eZdgheIqOIiacSmKcNHHPisPhqL1bv3a LZ1NF+arfPNFdIrVwyuOz4Ccux1NbCpj1jedCizu3lXE7wLuccCujdPoJb/zXR8B5TLF ikDAFIqq86NAyzAXG967CnOIViXvzm3/m4GLy3DbWKsWltlXCCeJfXVr3lKVUhy+0i8l SCN8Wm/gsmSG1q7SYpZIpkaHk1QMkizt/P8ghJ3ldzyPu2mYh1wyfZIDRcwLWb1bUjve ag6hnVRpJ+sXggHA0pxfqdAMn/MPnjh16B4imX7N85d9IOVT4JnKnHjmzIMhcP3JlAsI F2ew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kU2LSl2p; 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-73645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id he20-20020a1709073d9400b00a3e8ea17eddsi2293453ejc.183.2024.02.20.12.05.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 12:05:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=kU2LSl2p; 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-73645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73645-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7DC111F22505 for ; Tue, 20 Feb 2024 20:05:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93D4A14E2CB; Tue, 20 Feb 2024 20:04:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kU2LSl2p"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ghp+GXu3" 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 42AF914C5AB; Tue, 20 Feb 2024 20:04:31 +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=1708459473; cv=none; b=r8/6P+m0HnP0sxKnK+h2BZn+DGBGPwv9N/ryqvBPdTw+YPZcXQQXtlKrE3PZQPyziMBC34GF33v+kyXB9zYZRyeBQGmQVx4L1bvl9Rc1ZrZgAN1k49gax2iOyxC36NDivW3SS3O7cxR1gk/zk7DpHMBrxOIlb9LvjjWFy1gxrUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708459473; c=relaxed/simple; bh=YlaTgNvGPByvLzFwbPsWzVzBF/o2vLeyAX2wtTMioH4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ZjZcFRYgpF5sBanunLVUfYry84DzqycUwFyhQnNoK2cRPWFEjdf2YztF3U2H8gk79Kgc5flcA1zsG1Qsdbo5sCWHcs4BhZuPpgiY/MHWCU+lb2FCxoMINlTOaCivBOtyoKCwGe7QAPP3ZFW2pDTE3TuUK8qcF/zmyEl0knjgiRk= 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=kU2LSl2p; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ghp+GXu3; 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 Date: Tue, 20 Feb 2024 20:04:28 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708459469; h=from:from:sender:sender:reply-to: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=V+PAS7/iXPjIql4qTvsf+2JNdjp8EdmiSMeG4dWW9k0=; b=kU2LSl2pVsIohvsK1fGQzh4ZKGyXHRVmoCXJ4l90ReZsgWChsmGRKmppcDOn2WPeH6ulBj Wckg/PYy+l+FMDbLEGb9R+M6M8X0+Zw+6InGMTMGZYTcc7mEQtMW2ZIgNPmGEur8k2z5zI G5AgN8kKdK27Abdrf0NL92C/dZiN/D8mOSdp3v5jn926yPBB45Vjexgo9QWHbV42SPhx+B qYRYkjbN0+MBake4ZR9qVLlQRltXvTuaCPwm1SC0XWvoYpbcV2jIsaPd6UAo3G//tW2ppH cnmdtgqgZWxxK2E+QNTft4AhhgRwdOZnv23Tx6oH7fAS5nLVN2SjIs5N2SX5KA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708459469; h=from:from:sender:sender:reply-to: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=V+PAS7/iXPjIql4qTvsf+2JNdjp8EdmiSMeG4dWW9k0=; b=ghp+GXu3CUsMcI0Ty0l8uB2OB7M5C1XeS0gfmUt9umLz+0fQT8FwasF9/iZ4WPyMsAZevT uLwJMWQ99yW0TGDw== From: "tip-bot2 for Anna-Maria Behnsen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] riscv: vdso: Use generic union vdso_data_store Cc: "Anna-Maria Behnsen" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240220085212.6547-1-anna-maria@linutronix.de> References: <20240220085212.6547-1-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170845946887.398.13250110950661481313.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the timers/core branch of tip: Commit-ID: eba755314fa7bcb147193f51a44546697f3888f1 Gitweb: https://git.kernel.org/tip/eba755314fa7bcb147193f51a44546697f3888f1 Author: Anna-Maria Behnsen AuthorDate: Tue, 20 Feb 2024 09:52:12 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 20 Feb 2024 20:56:00 +01:00 riscv: vdso: Use generic union vdso_data_store There is already a generic union definition for vdso_data_store in the vdso datapage header. Use this definition to prevent code duplication. Signed-off-by: Anna-Maria Behnsen Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20240220085212.6547-1-anna-maria@linutronix.de --- arch/riscv/kernel/vdso.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/riscv/kernel/vdso.c b/arch/riscv/kernel/vdso.c index 2cf7621..98315b9 100644 --- a/arch/riscv/kernel/vdso.c +++ b/arch/riscv/kernel/vdso.c @@ -30,14 +30,8 @@ enum rv_vdso_map { #define VVAR_SIZE (VVAR_NR_PAGES << PAGE_SHIFT) -/* - * The vDSO data page. - */ -static union { - struct vdso_data data; - u8 page[PAGE_SIZE]; -} vdso_data_store __page_aligned_data; -struct vdso_data *vdso_data = &vdso_data_store.data; +static union vdso_data_store vdso_data_store __page_aligned_data; +struct vdso_data *vdso_data = vdso_data_store.data; struct __vdso_info { const char *name;