linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andy Chiu <andybnac@gmail.com>
To: "Thomas Weißschuh" <thomas.weissschuh@linutronix.de>
Cc: Kees Cook <kees@kernel.org>, Arnd Bergmann <arnd@arndb.de>,
	linux-mm@kvack.org,  linux-kernel@vger.kernel.org,
	linux-arch@vger.kernel.org,
	 linux-arm-kernel@lists.infradead.org,
	linux-riscv@lists.infradead.org,  loongarch@lists.linux.dev,
	linux-s390@vger.kernel.org,  linuxppc-dev@lists.ozlabs.org,
	linux-mips@vger.kernel.org,  sparclinux@vger.kernel.org,
	linux-sh@vger.kernel.org,  linux-alpha@vger.kernel.org
Subject: Re: [PATCH 07/15] RISC-V: Remove AT_VECTOR_SIZE_ARCH from UAPI
Date: Thu, 19 Mar 2026 09:27:47 -0500	[thread overview]
Message-ID: <CAFTtA3O74BTJz8d87CJFQpa8Sub_ouKyyAB8cTXUxd=BnUzS7Q@mail.gmail.com> (raw)
In-Reply-To: <20260302-at-vector-size-arch-v1-7-a11f03ba2ca8@linutronix.de>

On Mon, Mar 2, 2026 at 6:27 AM Thomas Weißschuh
<thomas.weissschuh@linutronix.de> wrote:
>
> There is nothing userspace can do with this value. In the kernel is
> always combined with AT_VECTOR_SIZE_BASE, which is not exposed to
> userspace and also changes from time to time.
>
> Move the symbol to a kernel-internal header.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>

Reviewed-by: Andy Chiu <andybnac@gmail.com>

> ---
>  arch/riscv/include/asm/auxvec.h      | 13 +++++++++++++
>  arch/riscv/include/uapi/asm/auxvec.h |  2 --
>  2 files changed, 13 insertions(+), 2 deletions(-)
>
> diff --git a/arch/riscv/include/asm/auxvec.h b/arch/riscv/include/asm/auxvec.h
> new file mode 100644
> index 000000000000..fb4233445276
> --- /dev/null
> +++ b/arch/riscv/include/asm/auxvec.h
> @@ -0,0 +1,13 @@
> +/* SPDX-License-Identifier: GPL-2.0-only */
> +/*
> + * Copyright (C) 2012 ARM Ltd.
> + * Copyright (C) 2015 Regents of the University of California
> + */
> +
> +#ifndef _ASM_RISCV_AUXVEC_H
> +#define _ASM_RISCV_AUXVEC_H
> +
> +/* entries in ARCH_DLINFO */
> +#define AT_VECTOR_SIZE_ARCH    10
> +
> +#endif /* _UAPI_ASM_RISCV_AUXVEC_H */
> diff --git a/arch/riscv/include/uapi/asm/auxvec.h b/arch/riscv/include/uapi/asm/auxvec.h
> index 95050ebe9ad0..0a725f2aa2e7 100644
> --- a/arch/riscv/include/uapi/asm/auxvec.h
> +++ b/arch/riscv/include/uapi/asm/auxvec.h
> @@ -33,8 +33,6 @@
>  #define AT_L3_CACHESIZE                46
>  #define AT_L3_CACHEGEOMETRY    47
>
> -/* entries in ARCH_DLINFO */
> -#define AT_VECTOR_SIZE_ARCH    10
>  #define AT_MINSIGSTKSZ         51
>
>  #endif /* _UAPI_ASM_RISCV_AUXVEC_H */
>
> --
> 2.53.0
>
>
> _______________________________________________
> linux-riscv mailing list
> linux-riscv@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-riscv


  reply	other threads:[~2026-03-19 14:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02 12:25 [PATCH 00/15] exec: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 01/15] MAINTAINERS: exec: Add more auxvec.h variants Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 02/15] auxvec.h: Move AT_VECTOR_SIZE definitions to linux/auxvec.h Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 03/15] asm-generic: add an in-kernel auxvec.h header Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 04/15] ARM: drop custom asm/auxvec.h Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 05/15] x86: Remove AT_VECTOR_SIZE_ARCH from UAPI Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 06/15] arm64: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 07/15] RISC-V: " Thomas Weißschuh
2026-03-19 14:27   ` Andy Chiu [this message]
2026-03-02 12:25 ` [PATCH 08/15] LoongArch: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 09/15] s390: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 10/15] powerpc: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 11/15] MIPS: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 12/15] sparc: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 13/15] sh: " Thomas Weißschuh
2026-03-02 12:25 ` [PATCH 14/15] alpha: remove " Thomas Weißschuh
2026-03-18  6:16   ` Magnus Lindholm
2026-03-02 12:25 ` [PATCH 15/15] auxvec.h: Drop fallback AT_VECTOR_SIZE_ARCH Thomas Weißschuh
2026-03-18 16:22 ` [PATCH 00/15] exec: Remove AT_VECTOR_SIZE_ARCH from UAPI Kees Cook

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFTtA3O74BTJz8d87CJFQpa8Sub_ouKyyAB8cTXUxd=BnUzS7Q@mail.gmail.com' \
    --to=andybnac@gmail.com \
    --cc=arnd@arndb.de \
    --cc=kees@kernel.org \
    --cc=linux-alpha@vger.kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=loongarch@lists.linux.dev \
    --cc=sparclinux@vger.kernel.org \
    --cc=thomas.weissschuh@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox