lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f8c1d2e1-b792-4c65-8e17-f31febe5e08d@gaisler.com>
Date: Mon, 26 Jan 2026 16:42:57 +0100
From: Andreas Larsson <andreas@...sler.com>
To: Thomas Weißschuh <thomas.weissschuh@...utronix.de>,
 "David S. Miller" <davem@...emloft.net>
Cc: sparclinux@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sparc: Implement ARCH_HAS_CC_CAN_LINK

On 2025-12-22 09:29, Thomas Weißschuh wrote:
> The generic CC_CAN_LINK detection does not work for all architectures.
> 
> Make the logic easier to understand and allow the simplification of the
> generic CC_CAN_LINK by using a tailored implementation.
> 
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
> ---
>  arch/sparc/Kconfig | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
> index a630d373e645..68b553a47d03 100644
> --- a/arch/sparc/Kconfig
> +++ b/arch/sparc/Kconfig
> @@ -13,6 +13,7 @@ config 64BIT
>  config SPARC
>  	bool
>  	default y
> +	select ARCH_HAS_CC_CAN_LINK
>  	select ARCH_HAS_CPU_CACHE_ALIASING
>  	select ARCH_HAS_DMA_OPS
>  	select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
> @@ -475,4 +476,14 @@ config COMPAT
>  	select ARCH_WANT_OLD_COMPAT_IPC
>  	select COMPAT_OLD_SIGACTION
>  
> +config ARCH_CC_CAN_LINK
> +	bool
> +	default $(cc_can_link_user,-m64) if 64BIT
> +	default $(cc_can_link_user,-m32)
> +
> +config ARCH_USERFLAGS
> +	string
> +	default "-m64" if 64BIT
> +	default "-m32"
> +
>  source "drivers/sbus/char/Kconfig"
> 
> ---
> base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
> change-id: 20251222-cc-can-link-sparc-153eb7ecb0b5
> 
> Best regards,

Reviewed-by: Andreas Larsson <andreas@...sler.com>

Picking this up to my for-next.

Thanks,
Andreas


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ