| Message ID | 20260927005837.8402-3-kaloz@kernel.org |
|---|---|
| State | New |
| Headers | show
Return-Path: <SRS0=AalS=HT=vger.kernel.org=sparclinux+bounces-8080-patchwork-incoming=ozlabs.org@ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=afoIpiz7; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org; envelope-from=srs0=aals=ht=vger.kernel.org=sparclinux+bounces-8080-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hsmMG4nN6z1xxW for <incoming@patchwork.ozlabs.org>; Sun, 27 Sep 2026 11:00:26 +1000 (AEST) Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4hsmLl6NKKz4wLV for <incoming@patchwork.ozlabs.org>; Sun, 27 Sep 2026 10:59:59 +1000 (AEST) Received: by gandalf.ozlabs.org (Postfix) id 4hsmLl6KH3z4wLn; Sun, 27 Sep 2026 10:59:59 +1000 (AEST) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; arc=pass smtp.remote-ip="2600:3c15:e001:75::12fc:5321" arc.chain=subspace.kernel.org ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790470799; cv=pass; b=od2u+m1xCCVF9w1vcmkyTkVK9O7VbEy0mWUxn1WJn8Ey2CSiRRcX6l1W1Kh7+KqJ9hsqvKYTbYWKMGROgGAjGUU8sq0nXJumZFkaLUCEOZxislslWf7Koyj8A4W0ZXe9puPvAGDUBBW4X3AnQEyzZBVJuhKLPh/0TPHVQUQJaXVsyrO8g6t0+bLEWGhwVMQHmU2wnqzUXXOz1TjdydguKQm4PfyFmK2jx1gSfXg1COu6Znlj+UzNgjlLDc2NqCwPNhhIPj7WtIRZATmY/1cHZN5GZfHcubhi7eVgcRi9srba4pNHHgJG35TpOOXDDwQxxmQamkPKIXidRVCwhT6EqQ== ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790470799; c=relaxed/relaxed; bh=HmVwWw9sYtO/LTRLE0BPqAsZu4M/a5Xl9IS9DWyFhng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=yhRTS6rHPMqtm7JQNLt45E7k6xpHrkKGKdTo/51LSyp20hsyggXGsx0X19FB4jGKUvoOdyyGa40hSXCGl/R7Ura7+z0o76gfrp4/95Ycc5CdZXGJAslsfVtWsZ2qC8O49Ghn5PneHCCHLMiNS6g5VQ0CNYbzsbXB+EXySuU6bnUNXi50t+RUPqg7Sb/xQQDlCKEIpwOYftS6dRFy/22NB8CggBqGWL7Viymw3SnKJyKTJ1vZKwU3/AW/KEdpp57OToMTYDbrhCf9e1L2Jhj7BZV91MwvLfQCCll393IBzIs/nDl8UGvvIzRCT8DiU8a6nCrDq5xyIIoc8/yUJ3CL1w== ARC-Authentication-Results: i=2; gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=afoIpiz7; dkim-atps=neutral; spf=pass (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-8080-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org Authentication-Results: gandalf.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: gandalf.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=afoIpiz7; dkim-atps=neutral Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org; envelope-from=sparclinux+bounces-8080-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from sin.lore.kernel.org (sin.lore.kernel.org [IPv6:2600:3c15:e001:75::12fc:5321]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hsmLh3GxPz4wLV for <patchwork-incoming@ozlabs.org>; Sun, 27 Sep 2026 10:59:56 +1000 (AEST) Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sin.lore.kernel.org (Postfix) with ESMTP id 9215A24FC2 for <patchwork-incoming@ozlabs.org>; Sun, 27 Sep 2026 00:59:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 426BF28FFF6; Sun, 27 Sep 2026 00:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="afoIpiz7" X-Original-To: sparclinux@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 12B8B29D281 for <sparclinux@vger.kernel.org>; Sun, 27 Sep 2026 00:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790470784; cv=none; b=Yfj7y2eeLZ5GLQ/3Ev1QXZePo1DUC7B21B6bxMCFtK/EJZJz9W/fEfskDxWnA8quWB3LuXGBkOIFsHy7vodpItjc8+eisw0DM+47p4vAcMzAmTMc0tKLijQ/UGs7N/At6nY7pTDUpXEl8dcKaj9bMM66Tc2+1+JKVTj/A5FnbLY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790470784; c=relaxed/simple; bh=T+7RCrS9qZzBRBjjw1FNIxPyPfUIA4sYoVzNtvCusnY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Uggkrd3CPrvLh8D8Ee37zaXB2c59IthiDGT1g8ii3pk1KoTJG/JC8JPv8qnABpxrurvixvCCYxgOZkiF0ZVHdWY7qhmngxtfrMw63ruucn7nzthEkd0g/zL742BaVlRhm/n5Z7rO2HRoa+G7Ea4Tn6mkcjfFRbG1WCBLFH69aJI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=afoIpiz7; arc=none smtp.client-ip=100.103.45.18 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0396C1F000FF; Sun, 27 Sep 2026 00:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1790470783; bh=HmVwWw9sYtO/LTRLE0BPqAsZu4M/a5Xl9IS9DWyFhng=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=afoIpiz77wsj/ywstti2cEGdaxeMxC8mH+KxJ6Fge9ebcOp8+ahkX/KJNtf0w5dAq wI5UzLE363hxbNtsRG2GYAxal2NVFCGYJj7pIOrPvHYZbuD+EF3L5v5846hFxV74EC lR6kxVaHh2M+Pmg94rRyRxChy1uJIbhY+MyDhlY+1+6lfbhAwmyfGT2rvdmWrSAFgd 21fp2xAHZrpKDl309a20FTOEgLKJvV23JoHc2pQQLIE1c1BEx7U9ThUSjFZkCYKA2y w8Qhq8vRIN+ZhjZWwHldigtbNM+LNKt/qWzU3TQAKd9yMSAv3fErjjyxZXXge36Dlg iPdQEX+rxOLdw== From: Imre Kaloz <kaloz@kernel.org> To: Andreas Larsson <andreas@gaisler.com>, sparclinux@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net> Subject: [PATCH 2/2] sparc64: make 32-bit userland support configurable Date: Sun, 27 Sep 2026 02:58:37 +0200 Message-ID: <20260927005837.8402-3-kaloz@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260927005837.8402-1-kaloz@kernel.org> References: <20260927005837.8402-1-kaloz@kernel.org> Precedence: bulk X-Mailing-List: sparclinux@vger.kernel.org List-Id: <sparclinux.vger.kernel.org> List-Subscribe: <mailto:sparclinux+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:sparclinux+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=disabled version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org |
| Series |
sparc64: CONFIG_COMPAT=n build fix and prompt
|
expand
|
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig index ab77d3f2536e..3779fb3169ab 100644 --- a/arch/sparc/Kconfig +++ b/arch/sparc/Kconfig @@ -447,13 +447,19 @@ config SPARC64_PCI_MSI endmenu config COMPAT - bool + bool "Kernel support for 32-bit SPARC binaries" depends on SPARC64 depends on !LD_IS_LLD default y select HAVE_UID16 select ARCH_WANT_OLD_COMPAT_IPC select COMPAT_OLD_SIGACTION + help + Run 32-bit SPARC binaries on a 64-bit kernel. This builds the + 32-bit system call table and entry path, and the compat signal, + ptrace, ioctl and System V IPC translation layers. + + If unsure, say Y. config ARCH_CC_CAN_LINK bool
CONFIG_COMPAT has no prompt on sparc64, so a kernel that will only ever run 64-bit binaries still carries the 32-bit system call table and entry path and the compat signal, ptrace, ioctl and System V IPC translation layers. Give it a prompt, keeping the default, so it can be left out; in a sparc64_defconfig build that makes the kernel about 88 KiB smaller. Signed-off-by: Imre Kaloz <kaloz@kernel.org> --- arch/sparc/Kconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)