From nobody Sun Feb 8 16:34:11 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 F12153382D5 for ; Fri, 9 Jan 2026 10:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767953041; cv=none; b=dtKvjYuwePTJ3s2XF6Q6Xa4vqtYZTDYH07jJaaNbQRrmzLlXCfRq4neHIrwBXGhutYH6gdrN1NTFWBJsYB67lTF7tQvY3MtNi2k+GxB9F8uXtjCRE1omIqW9e7rBk00LhjwD6gMi87uD2P6xXs7ZofIATvIx5Z37jamDPfxN0G4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767953041; c=relaxed/simple; bh=5uI5RyNM8D/WUKFooFEr0jc6IRi5AZX5Qxy0aMTcUOI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=s25eiRvpDlXBdQs1nPjLsbtWQ2n8JRSdmecpXCa7rqAAQGc3Sjp6PEoa4Qb9EZP1pTIzM8qs5MkIllnr3GiKcdfW6We5GMa8wV96BLXdTHduT8uhERfHGxEB7QJ1FFY5yORNKD29Iqy4lzpYxC3W6rlb5wDJWvIZdFUZJvtfw10= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=n1dQInme; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=v6/6Q+v7; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="n1dQInme"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="v6/6Q+v7" From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1767953038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j3TDkz1mkk+5CoG4tXdYWIkXakwQPf8XXuWbY3gDnmo=; b=n1dQInmeF3rYS0P77sAZY8s+4xxkBpW5NPTDMHdkaSR4JF05sdnhPUA9Mi6A5ElUs/V3z9 LQTwHE/vjFeo2xWFIP2em5H76KIOizOSNuyLE02CUa5X6bjA2fZxWAN6IefiYBEJKJgKqJ ZYkeTgaofBnwC+IMvyM2c/vjRw7EdyJbcDcNNumrSbLna76nWZ2DrYwYt0qRg2WU0d6uVz rL4IVfu6ZkNxiGdZ3rOu0sCPjxbOPYTjYdPywOMvKcdPQSsvfZSf3NoKzpUbztkSnmY99u GL495knmc9u6voFQFXTF4SfzktwLwRczbpdMCNWfwoOTaUFlZwGa0alZUiG9Uw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1767953038; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=j3TDkz1mkk+5CoG4tXdYWIkXakwQPf8XXuWbY3gDnmo=; b=v6/6Q+v7oH/6sk1dAFUbNFoLCLimUOK/sFvBWUhNkfSLuw8GwZqF/cf+nb7c0nRSBzQHyW L4zeur5t5NYFySCw== Date: Fri, 09 Jan 2026 11:03:56 +0100 Subject: [PATCH] ARM: Implement ARCH_HAS_CC_CAN_LINK 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260109-cc-can-link-arm-v1-1-b748e2aaa6a6@linutronix.de> X-B4-Tracking: v=1; b=H4sIAIvSYGkC/x3MMQqAMAxA0atIZgM1FAevIg4hphrUKi2IULy7x fEN/xfImkwzDE2BpLdlO2NF1zYgK8dF0eZqIEe96xyhCApH3C1uyOlAryqBZ2KnHmp1JQ32/Md xet8PIRKgjmEAAAA= X-Change-ID: 20260102-cc-can-link-arm-4eecfad2a0e4 To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Developer-Signature: v=1; a=ed25519-sha256; t=1767953036; l=1481; i=thomas.weissschuh@linutronix.de; s=20240209; h=from:subject:message-id; bh=5uI5RyNM8D/WUKFooFEr0jc6IRi5AZX5Qxy0aMTcUOI=; b=PvEF9tAxvLs1S8N7gsTUKnyZpzU7qN6rDazLWrNDhzcyxXWfZ42qZKAQppu+47R7gXgpFKlhH 4vjaICVERK+CdABHMzjF9PzLLkCew4p2K7sk+zv2bLWm5IzCprgghO2 X-Developer-Key: i=thomas.weissschuh@linutronix.de; a=ed25519; pk=pfvxvpFUDJV2h2nY0FidLUml22uGLSjByFbM6aqQQws= The generic CC_CAN_LINK detection does not handle different byte orders. This may lead to userprogs which are not actually runnable on the target kernel. Use architecture-specific logic supporting byte orders instead. Signed-off-by: Thomas Wei=C3=9Fschuh --- arch/arm/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index fa83c040ee2d..5ca48361e1a0 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -6,6 +6,7 @@ config ARM select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE if HAVE_KRETPROBES && FRAME_P= OINTER && !ARM_UNWIND select ARCH_HAS_BINFMT_FLAT select ARCH_HAS_CACHE_LINE_SIZE if OF + select ARCH_HAS_CC_CAN_LINK select ARCH_HAS_CPU_CACHE_ALIASING select ARCH_HAS_CPU_FINALIZE_INIT if MMU select ARCH_HAS_CURRENT_STACK_POINTER @@ -1715,6 +1716,16 @@ config KERNEL_MODE_NEON =20 endmenu =20 +config ARCH_CC_CAN_LINK + bool + default $(cc_can_link_user,-mlittle-endian) if CPU_LITTLE_ENDIAN + default $(cc_can_link_user,-mbig-endian) if CPU_BIG_ENDIAN + +config ARCH_USERFLAGS + string + default "-mlittle-endian" if CPU_LITTLE_ENDIAN + default "-mbig-endian" if CPU_BIG_ENDIAN + menu "Power management options" =20 source "kernel/power/Kconfig" --- base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8 change-id: 20260102-cc-can-link-arm-4eecfad2a0e4 Best regards, --=20 Thomas Wei=C3=9Fschuh