Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1456482rdb; Mon, 19 Feb 2024 17:13:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSGi53AOVlY7drBTY8WUTwcjMf0p5mXmNsBk3OsZXf6isHJrb9q6q7wKgTkugdjQOvIGc8kRmHMwkjh3hrFGYN3NQlsoWpc2vY6KFCEw== X-Google-Smtp-Source: AGHT+IG+KdfWntTWdURWj3Ziyy0lS+Pz4ltPlF+C4LkfrDc/meJyWcrZLaDeOM9dc6eCMz2DPSST X-Received: by 2002:a54:4090:0:b0:3bf:dc29:c2cf with SMTP id i16-20020a544090000000b003bfdc29c2cfmr13490825oii.14.1708391610786; Mon, 19 Feb 2024 17:13:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708391610; cv=pass; d=google.com; s=arc-20160816; b=yx8fevjzTb7LDX/1awmZejUXbqvOVyOvTXFp4t2YXKkPBm9tdr+RLQwlsBsNPAoK3s BLp2poidLcR6+kuA+EGgSDlLArvp39sNQCb6wIBfXrpRahUr2MaaZESkoOitesrHEfLv EfzKjOsnm1mKvRWD8W/e98GxNtAi9qmfKldD0N7FxwFDiRtB9P9mvmeo4KZFkRQiMqjt xBzMo6IVDRdfKV7GzjXHA4/JY/9T3CSVK9Zaz+nCvd8V0KPMrq+7l1DswSvOEaoCLB1y vuek60FgFL/4iJkUItjukqk0aDLAUTJIuDNts2axwATYkttmup4mRUGnzu5QOrHzHU3L lj7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=zr2rHhk+e9ORvGyxXzP+YJbyQ9YpjhCBvEoeBhS3LRA=; fh=Cr/XY8FAiS/G8caNq79x12NBgtMAk7GFLzRETDC6uHM=; b=jYa3IRYYzjkt4VNxfFoBQ8NE6dM3jA6JkhcnPcnYqKPV6fdl2KKofY8t8tfbrSPdG0 NHnzQdV+9yRmnUrQoWg0q9Lcn81xTRKP7czRvu35yB4xTmmOiKYfry6FRyAfh/y8vN6y okDRtRkE2QIcU3PLdaxqhmCtQIXRq51haA1WZ8bTBgJIdSaBlD/l8BeElpTf0A4W5kwe esQp3uybKUqluxviXlmfHixwyi+kUsLJVkkwNZjq0TSX8yy1z4vE681KnTMv6hdHcpTT isyFN1G80PbuSIEbXIL0wBStkZWpJaNhIveNhGuK2KfJahMqi2EURVqvO5ZDyYI+1ZI/ BeCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azThkOh+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a2-20020a05620a438200b00785ac2198fesi8792428qkp.663.2024.02.19.17.13.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 17:13:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azThkOh+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72169-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72169-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 883E31C22537 for ; Tue, 20 Feb 2024 01:13:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02E1D12B76; Tue, 20 Feb 2024 01:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="azThkOh+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1E6D3FC19; Tue, 20 Feb 2024 01:13:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708391604; cv=none; b=ZYJrP3ar+EtMBUFdEYywQA9nsZ9r0n7IkeBVfXEeS6tJmcWvKmVit9JbXuNkrsaEsDiK2VOutOsXKizpdUvyrIynk3C3kv32SotqaU8/leTwHmoJSnW2rjuhrARbj+Jp74PXYt8G4qymx9Nyge1unRvrhPE7M/JCwWow3E8GoRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708391604; c=relaxed/simple; bh=1OOQqs9gGIXShrtHtgrk0GR+vwo9fMIkwu5VM+GuMys=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=HvqYTutO8m6iiw5fkS9IoJWmcQYM3A0ZZaqItCm/qvvXIdePvKSRYykzS+5KCLIRcCcB5Q0a+OKmMQf8jQz78fLMAn+3eXVpjF5nfng8iJxplJLjfYR+Jo4Xq1pUgTElilEMaQb89rSp9vvy2pc3JB5p5F4xneJPElZ1EjsAijg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=azThkOh+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9689FC433F1; Tue, 20 Feb 2024 01:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708391603; bh=1OOQqs9gGIXShrtHtgrk0GR+vwo9fMIkwu5VM+GuMys=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=azThkOh+4ID7iBbpzd1V5Wp4tUfENPWQ2pzbvUXmD8WiMz6wXRp/BkhVpv2wuk0m7 +m4cD03Io2mm0+2rDv588oA9Rs5FwcHpkDgz2VQMRm77eNkRRy3A3PhoJP+lOkGTWl /BAZXyb9we+C76KKVBOakfjKpXBYRfRLBp3SMyExBTiNGqY3P5z39qfLwb2kwPqxew 9/j/r2zuA2OjAd1hBR1teJaoYE8xLDT3XNskHnmVyN0GdfimHXal/1R12o5w4x0to2 qApMHYjeGuLoefTwvV2YmWhejJCe6uU1VWDkDge5WgiAzXMU9uBbYyxnX2UCdRtmki Ualrcw7+6BqmQ== Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a293f2280c7so687078666b.1; Mon, 19 Feb 2024 17:13:23 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWzpfqTkrXytClPZmK830GYjaMYpHV7JzdyXXdXZdYYYDt4HX6W7DB9aUNRJFZrIxrE9/hr/rdLdJ4PUc5X+iVxTmlrkUO39qii5g== X-Gm-Message-State: AOJu0YzCDbbnWuiPVhJnEGMoXyHkO/ej45IOraLKFqfN8wVAqs1J3rnQ 3jJ5B3vwHguXnJaLe9PMSE0izjyg2IF1CHhMRjPf0hHwkPZDcOr/WsEbQhE/JunYPOBua1yk0hO 8xI6xeoXDZpKefpYLpOhK2EjGWjs= X-Received: by 2002:a17:906:f258:b0:a3e:d20a:f1d9 with SMTP id gy24-20020a170906f25800b00a3ed20af1d9mr1620905ejb.11.1708391602008; Mon, 19 Feb 2024 17:13:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240219153939.75719-1-anna-maria@linutronix.de> <20240219153939.75719-11-anna-maria@linutronix.de> In-Reply-To: <20240219153939.75719-11-anna-maria@linutronix.de> From: Guo Ren Date: Tue, 20 Feb 2024 09:13:10 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 10/10] csky/vdso: Use generic union vdso_data_store To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , linux-csky@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 19, 2024 at 11:40=E2=80=AFPM Anna-Maria Behnsen wrote: > > 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 > Cc: Guo Ren > Cc: linux-csky@vger.kernel.org > --- > arch/csky/kernel/vdso.c | 10 ++-------- > 1 file changed, 2 insertions(+), 8 deletions(-) > > diff --git a/arch/csky/kernel/vdso.c b/arch/csky/kernel/vdso.c > index e74a2504d331..2ca886e4a458 100644 > --- a/arch/csky/kernel/vdso.c > +++ b/arch/csky/kernel/vdso.c > @@ -15,14 +15,8 @@ extern char vdso_start[], vdso_end[]; > static unsigned int vdso_pages; > static struct page **vdso_pagelist; > > -/* > - * 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 =3D &vdso_data_store.data; > +static union vdso_data_store vdso_data_store __page_aligned_data; > +struct vdso_data *vdso_data =3D vdso_data_store.data; > > static int __init vdso_init(void) > { > -- > 2.39.2 > Acked-by: Guo Ren --=20 Best Regards Guo Ren