Re: [PATCH v2] sh: remove CONFIG_VSYSCALL reference from UAPI

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.ports.sh.devel,gmane.linux.kernel
Message-ID <9668ee6dd3e3de7a230893a8cc734de25a517e68.camel@physik.fu-berlin.de>
Hi Thomas,

On Tue, 2026-02-24 at 16:35 +0100, Thomas Weißschuh wrote:
> AT_SYSINFO_EHDR defines the auxvector index representing the vDSO
> entrypoint. Its value or presence does not depend on whether a vDSO
> is actually provided by the kernel.
> 
> The definition of AT_SYSINFO_EHDR was gated between CONFIG_VSYSCALL to
> avoid a default gate VMA to be created. However that default gate VMA
> was removed entirely in commit a6c19dfe3994
> ("arm64,ia64,ppc,s390,sh,tile,um,x86,mm: remove default gate area").
> 
> Remove the now unnecessary conditional.
> 
> Signed-off-by: Thomas Weißschuh <[email protected]>
> ---
> Changes in v2:
> - Rebase on v7.0-rc1
> - Flesh out commit message
> - Link to v1: https://lore.kernel.org/r/[email protected]
> ---
>  arch/sh/include/uapi/asm/auxvec.h | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/arch/sh/include/uapi/asm/auxvec.h b/arch/sh/include/uapi/asm/auxvec.h
> index 8eb47ede7193..63fcc39e2c6a 100644
> --- a/arch/sh/include/uapi/asm/auxvec.h
> +++ b/arch/sh/include/uapi/asm/auxvec.h
> @@ -13,14 +13,10 @@
>   */
>  #define AT_FPUCW		18	/* Used FPU control word.  */
>  
> -#if defined(CONFIG_VSYSCALL) || !defined(__KERNEL__)
>  /*
> - * Only define this in the vsyscall case, the entry point to
> - * the vsyscall page gets placed here. The kernel will attempt
> - * to build a gate VMA we don't care about otherwise..
> + * The entry point to the vsyscall page gets placed here.
>   */
>  #define AT_SYSINFO_EHDR		33
> -#endif
>  
>  /*
>   * More complete cache descriptions than AT_[DIU]CACHEBSIZE.  If the
> 
> ---
> base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
> change-id: 20260112-uapi-sh-at-sysinfo-ehdr-f26a12ec5940
> 
> Best regards,

Looks good to me. I'll pick it up later this week. There are a number of patches
that have accumulated over the past months since I got too busy to work on sh-linux.

Reviewed-by: John Paul Adrian Glaubitz <[email protected]>

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.