Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp418455rdb; Thu, 22 Feb 2024 07:44:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUUUxZtqXl/eJ1Kve/Zp8mqBZKBH+5uHbElrvrotXR3SZkGUitqmwJHpsxNhFg6u29OAZ9ELJVynZyOJjdP5ObLUd6uOkkpxXZ2ra4wrw== X-Google-Smtp-Source: AGHT+IFvoIOHaz6iyivrAciA/LlEbQuBzswFV2ZGrBZCkoD9oa557mVZ72Uz9QDVzyZ1wP84HVBq X-Received: by 2002:a05:6102:3107:b0:470:41b7:dbe8 with SMTP id e7-20020a056102310700b0047041b7dbe8mr9166225vsh.6.1708616683311; Thu, 22 Feb 2024 07:44:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708616683; cv=pass; d=google.com; s=arc-20160816; b=X2M/T4siLETN/0TZCkVwQHpijsKSb7gY1SEeAEAr+KRobjZE3EkuXMDJB5F4Mp5fYZ jX0gJEVLf89MVCEtuwHJQnX8qA9tGmaGmsjBMYH3HRbD88LpzSuZ91dsoYqqCM2E7PFm v9PfxZxzJ4g7rJxmK3I2tcdgI7BpA85mg71/gKbwXo3ml178bKn7X2SeJ7QZaBCFxxsf 9ymceHtI1N+C3wjB84AU2XesFpvlogOGMr2F+Nan0jIk4NtdW8efJsCWxR0NZZLdy7WX hfELEmOrEzC2VoYPf7DpYyqyuF7Z06fWBpk3M+P8NzDzSWY9KIJ1OIy2BVR3xHbQhbXN oAlA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=zw6pEYL2uHCClw2OA7xJEtCTrZ5ki1OaTbaMiiMazx4=; fh=gWcsnnKtlvUncnNg/vskYGSFXrB0S6Ra6bTlgRWR9x8=; b=ptE5QFKEYeojI+B0VVGTiprCAIO4ZiVqdDxdc/+/LGvGLnjyJ9MDPeromIZFIXwAcM ordDm6w2/qRy9m+OYmtPwTtB210T5yuCL5mRCneo3CNm3RUyfmeBWSHWFBNseCsP8gYt SIwQVLRdy/y/DsRlxMPLG91alhubhj7IfE/zERFDHNTBMoHWbI1VarSYpFvCcUYsDfwU 9ELfpULNcm3T5XQTumt0swOJ+ST18Zk8eILyDECkiCPt3oNKhOtUYxDbNOpgzUkHc+mB /xwcVDgY30hMHNf8Olp7eQfp0zCzsaRCWK9PAWFvkEKi+b2Nj1kX0q+GhoJYkc7ERb8V MZDQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Qk+5wVMZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76805-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 kl2-20020a056214518200b0068ef74704a1si12700819qvb.453.2024.02.22.07.44.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 07:44:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76805-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=Qk+5wVMZ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76805-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76805-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 14FEE1C24A18 for ; Thu, 22 Feb 2024 15:44:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96221156980; Thu, 22 Feb 2024 15:41:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qk+5wVMZ" 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 B9867156976 for ; Thu, 22 Feb 2024 15:41:52 +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=1708616512; cv=none; b=j6Nn/73/iAr2IbTlvNqb22BVxqOeWz/+ghnvhXDOiMK6g0DfCaOsDB6NoRnTmK2gzSTuMmdoSsfAVO9ueg6Fw0efKsnRpslhvVp/7W4raYNdqR5AZR0EfFmI6ejz1MM3EJDeB4fiSMJ0QeSYoF6Qi5DBcSbwcbiMMOr2qqdqTeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708616512; c=relaxed/simple; bh=nqgg4xZrpKp12QvERL+ahDDnpkHl69a5C+qcajcYEFw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=P5GL4RTtfC/JkFasDyC6Imf3x9ZKRjBXvPdmRuv13cAK2mBoMU0Hy9ffNBHsy1zfLO+5PsEXNZ0wv8szxf6dp/D+3hDr4OjxOobhCP1DmQnujH0RKlRmTJPQRCzDwk1yDxOzsG83W8CsJsmImsjNuMmnhjNLsgBjQP8lkMyJ3LE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qk+5wVMZ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC409C43390; Thu, 22 Feb 2024 15:41:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708616512; bh=nqgg4xZrpKp12QvERL+ahDDnpkHl69a5C+qcajcYEFw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qk+5wVMZwcgL9wZU/PM2XA8D4i5s/MQ8EsK+MdEP0+gUzahW9vw3zydeagdg4t2IO YcyGJAZpPQ9mMM4AlW5EfYuZEjoIu7wcU4zyfXIedmQXcq8u49tRGFb3Fq4SJ2ZSuz 66qQK9SIRNCJqevPFxQUt84yUxi+k6aQe/Pmu9oRRX0WIFFotbeHGnBgM0KwgpGmx6 OLlU1VoAYHsRPauGQevhHCQCe6io1q2FPZ8ypI1P2m2KOHJy5N8JH5mRIRCJGK7ybv QSvu39MYUPdBnj0/Ak3NgW3zQqfmJcLJcbZMEUgtGSMWveI6DShDKUyxc9hJvc3WSz HD6fuDr4fX6Xw== Date: Thu, 22 Feb 2024 15:41:47 +0000 From: Will Deacon To: Anna-Maria Behnsen Cc: linux-kernel@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , Vincenzo Frascino , Catalin Marinas , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 05/10] arm64/vdso: Use generic union vdso_data_store Message-ID: <20240222154146.GA8949@willie-the-truck> References: <20240219153939.75719-1-anna-maria@linutronix.de> <20240219153939.75719-6-anna-maria@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240219153939.75719-6-anna-maria@linutronix.de> User-Agent: Mutt/1.10.1 (2018-07-13) On Mon, Feb 19, 2024 at 04:39:34PM +0100, 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: Catalin Marinas > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > --- > arch/arm64/kernel/vdso.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c > index 5562daf38a22..89b6e7840002 100644 > --- a/arch/arm64/kernel/vdso.c > +++ b/arch/arm64/kernel/vdso.c > @@ -69,10 +69,7 @@ static struct vdso_abi_info vdso_info[] __ro_after_init = { > /* > * The vDSO data page. > */ > -static union { > - struct vdso_data data[CS_BASES]; > - u8 page[PAGE_SIZE]; > -} vdso_data_store __page_aligned_data; > +static union vdso_data_store vdso_data_store __page_aligned_data; > struct vdso_data *vdso_data = vdso_data_store.data; > > static int vdso_mremap(const struct vm_special_mapping *sm, > -- > 2.39.2 Acked-by: Will Deacon Will