{"id":2228076,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228076/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-um/patch/20260425034125.53866-1-david@davidgow.net/","project":{"id":60,"url":"http://patchwork.ozlabs.org/api/1.1/projects/60/?format=json","name":"User-mode Linux Development","link_name":"linux-um","list_id":"linux-um.lists.infradead.org","list_email":"linux-um@lists.infradead.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260425034125.53866-1-david@davidgow.net>","date":"2026-04-25T03:41:23","name":"rust: arch:um: Fix building 32-bit UML with GCC","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"0fcad05585c026d81f5c8bf161f8ab21591a3312","submitter":{"id":85079,"url":"http://patchwork.ozlabs.org/api/1.1/people/85079/?format=json","name":"David Gow","email":"david@davidgow.net"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-um/patch/20260425034125.53866-1-david@davidgow.net/mbox/","series":[{"id":501419,"url":"http://patchwork.ozlabs.org/api/1.1/series/501419/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-um/list/?series=501419","date":"2026-04-25T03:41:23","name":"rust: arch:um: Fix building 32-bit UML with GCC","version":1,"mbox":"http://patchwork.ozlabs.org/series/501419/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228076/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228076/checks/","tags":{},"headers":{"Return-Path":"\n <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=NTvUapR3;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=davidgow.net header.i=@davidgow.net header.a=rsa-sha256\n header.s=201606 header.b=aM7Xm3/3;\n\tdkim=pass (4096-bit key) header.d=davidgow.net header.i=@davidgow.net\n header.a=rsa-sha256 header.s=201606 header.b=IYc/LXRU;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g2bJ212Blz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 25 Apr 2026 13:42:37 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wGTuV-0000000E3Fz-4BCP;\n\tSat, 25 Apr 2026 03:42:27 +0000","from sphereful.davidgow.net ([2404:9400:4:0:216:3eff:fee2:5328])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wGTuT-0000000E3F9-2J3r\n\tfor linux-um@lists.infradead.org;\n\tSat, 25 Apr 2026 03:42:26 +0000","by sphereful.davidgow.net (Postfix, from userid 119)\n\tid DB8791E8F10; Sat, 25 Apr 2026 11:42:10 +0800 (AWST)","from localhost (pa49-196-90-201.pa.vic.optusnet.com.au\n [49.196.90.201])\n\tby sphereful.davidgow.net (Postfix) with ESMTPSA id 9DCB31E8F09;\n\tSat, 25 Apr 2026 11:41:39 +0800 (AWST)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help\n\t:List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding:\n\tMIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type:\n\tContent-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:\n\tResent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner;\n\tbh=FkmQB+P02KIaQYkq0qbQCwjnAua5/GEYD9Iuj4JxTmg=; b=NTvUapR3JzzRTb7BFpXP+W7P/g\n\thqmOkmLqbokN5m0brf0zrKcf86YEmbs/ZtnD+eJUX7HfQmdjQ83faWrIZ1MA8Y7SU815LNHMatxS5\n\tawEIVUZne8KQsMPELb2bn/Gjvqd81CPLwOwNbptBNl7Zlj9q7g0Z2URAC3GZwzwAZLzPZtCZzC2MN\n\t3089cPaCqSf/B+ktfLnOvmZI5LOYp9vgCp7qPOhFSZZrCLkfwHZtQU4EN7if3ERd23twfeQFtKe6V\n\t+7V0xoXVNOhxPaNwbEtQ0XqDE1xtq+orjPGVxWLO/bJDX0NUh/m1O0w2wkxp0yUU1TRwyfpv6aHjO\n\tnzQ6E9hQ==;","v=1; a=rsa-sha256; c=simple/simple; d=davidgow.net;\n\ts=201606; t=1777088530;\n\tbh=G/zToooWqj7mh84RSSASjaLKt8CwDepv7//5sF8bZ5g=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=aM7Xm3/3KpTKZVUE7jGGuTdHqe7O4yZGn/wz9kf1LUiUXYcxxfvVjnSAPUwXpJzNa\n\t ZHSs4V/XUX9fQcqzsXFp2C8ybyZAB1TANZid70cZ+T8bEX7rAYuq7gcxUH1cEuW3Av\n\t +F37F4+2BhdfUPfh2uO3ovYtpkn4p04wejaMNFAH9V689J9izPeVkza4ZixMe55mlR\n\t ebvOPDzq6DdXhqbUtJgkpRYEUhtOkq7VEUv05ArzA6CaLAIxuPogdO45qMU7K4rKxi\n\t YGyjXS9qKFoyDsHpujnuvKT+eriNkwzf8xISlHw+0weoA5kZedoVPUYXOrXjbUrw4P\n\t G7qfgGSTi5V0mJsmnu7y4WWT1jVlBhsvyXNpztNaGY+WOpQURZmP0kM5MfnECoWkSi\n\t FG67iN4TbEVBsJH4GMc7JbxfO8oT5q3cGnL8UTXtVrJrkKYBePe3LYfWjO4wqcSIrd\n\t 9+ikaKDeKe+G/SsKBIPu8aEji15+2l/B3Cja06wMJszYNbbGJKr7cRRufPI20ulWw1\n\t YDPJuH7qvdCslH2w2QXLaedoWK5rbA5rAjEGA63fCyN0dM7Tik5QR2ud6SW9O5FeZh\n\t J5EFsUmSHd5dMvR2cR0QzaP0Xgjk7QX4gDi8fm0QheY/ubIIJY6LuGxZt+mYOj+HId\n\t FfpYfH4PatUHRFFkPRjewYAE=","v=1; a=rsa-sha256; c=simple/simple; d=davidgow.net;\n\ts=201606; t=1777088500;\n\tbh=G/zToooWqj7mh84RSSASjaLKt8CwDepv7//5sF8bZ5g=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=IYc/LXRUA4ZYsZpFGxSTgJ8dRc/Tv0FSV5+eSo3K34sP3kqR0/ems5EF05ZLQdZ7B\n\t 19l7IVxTsxOXJeG6Z3iVAheE27f3copYWKDvgscdute2gGNOoCw61WHdwRBTl+5Aer\n\t Wx1ZggzPWP27QPZ2JSG46atuZolXwgPGlRrlMCxhwZAeHkWHmqB1PKc7kdD1chSPjk\n\t ZR1I07LCwaN9+/DyuBSyzgsbPN2sP+h4hogIniP+TKi2e9o+xXeDzso4cGg5pH3wn7\n\t 9WzeBPT89dPNxknTMnaMOzotec8ebogCtc6oxewh8l9fANrUW8rHrmVwf0TkVx1q5l\n\t 2Ca2D40cE05xjP9fwTJVKurrRBNACNlIUywJVFw9AwqGSjLNuM3gD/wwZeL4JsJULc\n\t xtUPyp+nv0hekBCObVy17fsayLammrUNVuGVdUJOFkD5B6b9NL/OBfVchYZSmXEN4U\n\t G8/4il7B8LNWWx1Dy/TFmH/5P2x0AzTt+Dg96YCGYtwsh78MdCvrehGkk0RLioevk3\n\t Qaynz74TEDEoV6wI8JO1vInvqb93dy3+YBt7TYhB4Nbk+5RzcHLVHRKbTxzzkQ0iu4\n\t lQCMQo+ENCr5jzSetXokmTvCEOiiN1UZOoHUZ08Hdix0J1deqBEgPATChCI518NjKJ\n\t eLX9Wf4jJo0/6oWZhM0orcLI="],"X-Spam-Checker-Version":"SpamAssassin 3.4.6 (2021-04-09) on\n\tsphereful.davidgow.net","X-Spam-Level":"","X-Spam-Status":"No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_INVALID,\n\tDKIM_SIGNED autolearn=no autolearn_force=no version=3.4.6","From":"David Gow <david@davidgow.net>","To":"Miguel Ojeda <ojeda@kernel.org>,\n\tJohannes Berg <johannes.berg@intel.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tAnton Ivanov <anton.ivanov@cambridgegreys.com>","Cc":"David Gow <david@davidgow.net>,\n =?utf-8?q?Thomas_Wei=C3=9Fschuh?= <linux@weissschuh.net>,\n rust-for-linux@vger.kernel.org, linux-um@lists.infradead.org,\n linux-kernel@vger.kernel.org","Subject":"[PATCH] rust: arch:um: Fix building 32-bit UML with GCC","Date":"Sat, 25 Apr 2026 11:41:23 +0800","Message-ID":"<20260425034125.53866-1-david@davidgow.net>","X-Mailer":"git-send-email 2.53.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260424_204225_849130_D4BACC99 ","X-CRM114-Status":"UNSURE (   9.63  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.1 (--)","X-Spam-Report":"Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  32-bit UML builds can be configured either by setting\n CONFIG_64BIT=n\n    or with SUBARCH=i386. Both work with Rust-for-Linux when clang is the\n compiler,\n    but when SUBARCH=i386, we don't set a bindgen targe [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.0 SPF_PASS               SPF: sender matches SPF record\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]","X-BeenThere":"linux-um@lists.infradead.org","X-Mailman-Version":"2.1.34","Precedence":"list","List-Id":"<linux-um.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-um/>","List-Post":"<mailto:linux-um@lists.infradead.org>","List-Help":"<mailto:linux-um-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-um>,\n <mailto:linux-um-request@lists.infradead.org?subject=subscribe>","Sender":"\"linux-um\" <linux-um-bounces@lists.infradead.org>","Errors-To":"linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"32-bit UML builds can be configured either by setting CONFIG_64BIT=n or\nwith SUBARCH=i386. Both work with Rust-for-Linux when clang is the\ncompiler, but when SUBARCH=i386, we don't set a bindgen target correctly if\ngcc is the compiler.\n\nAdd the appropriate bindgen target configuration for i386, as is done in\nMakefile.clang.\n\nFixes: ab0f4cedc355 (\"arch: um: rust: Add i386 support for Rust\")\nSigned-off-by: David Gow <david@davidgow.net>\n---\n\nThis could go in via either the rust or um trees. I suspect rust is less\nlikely to trigger conflicts, though.\n\nCheers,\n-- David\n\n---\n rust/Makefile | 2 ++\n 1 file changed, 2 insertions(+)","diff":"diff --git a/rust/Makefile b/rust/Makefile\nindex b361bfedfdf0..b9e9f512cec3 100644\n--- a/rust/Makefile\n+++ b/rust/Makefile\n@@ -403,6 +403,8 @@ BINDGEN_TARGET_x86\t:= x86_64-linux-gnu\n BINDGEN_TARGET_arm64\t:= aarch64-linux-gnu\n BINDGEN_TARGET_arm\t:= arm-linux-gnueabi\n BINDGEN_TARGET_loongarch\t:= loongarch64-linux-gnusf\n+# This is only for i386 UM builds, which need the 32-bit target not -m32\n+BINDGEN_TARGET_i386\t:= i386-linux-gnu\n BINDGEN_TARGET_um\t:= $(BINDGEN_TARGET_$(SUBARCH))\n BINDGEN_TARGET\t\t:= $(BINDGEN_TARGET_$(SRCARCH))\n \n","prefixes":[]}