Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp470159lqr; Wed, 5 Jun 2024 11:05:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX96cSOuBVhX+m/pT5pX4YYxCYADpmRXufIlwzwn0ySywdck4krFmV7vtxjynMv4LvAwAwlOPBb3NvaTLcimeu2GRfIisn/NgBiSA1M/A== X-Google-Smtp-Source: AGHT+IGWHz0Rnz1n3KS9DwpkVcQPFbr8ouBY6naC1+594u0ZZGUuhfXX82yTUJIsXfxQzZUU1psg X-Received: by 2002:ac2:5962:0:b0:51d:21fb:4012 with SMTP id 2adb3069b0e04-52bab509421mr1810365e87.56.1717610740442; Wed, 05 Jun 2024 11:05:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717610740; cv=pass; d=google.com; s=arc-20160816; b=JRyPai+cr6rLOkmxSKsrN35q96vcI6KGV20YEd/QthhJiW379TizThbumn8XmCoi4w JmAOESoPP87iEy4woHD5zUolM/UbewptO/T331itgd9oPqs8Vmz/PJCKSbbRXoDtlxEk XLesYzSwFaALupIHLCWUzdWa5hH3Zw7Dm7MNarhljmwp3ukS5cnabkofgh1FGNC9Vo+u rG2bQ1pKT2IIT24tWyZi1UpB6h3CSoGLSZGz04lEXPGaxtXSGTxSk4npPMIJrv0DRfz6 +pF7+vS1lxAVRtlPcrxaivVFz69iYHZVmlnZ0pXCcTlAkqKTtktZPG1dtnTH20ZohtNa 0Bow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=uwUrfu/yzS/YNseKipCZSPaE2sZQzojPJmfSYmfQ2II=; fh=AaHHvu5bvjBNKnoUqOVg/gK8CqPf64z5Kbl9Uj7v4ok=; b=EFWR/0htia7YBVI4GnEffCIBGSbm0zx5ckrgICWW7VX5g4I6ucT+7rfW1HYeMP4HAU l6ElHcwC5xU481pxzJYZZ0S4NARO5YEqkdv43r2S1GuXnvV02O4lNQQcDUcS5IkYBnu6 jUwgCcAhDFKBjS0G72aryBBZE0Q/HjFUvMlQEkrIUazwpwMDkvTb97uyOOFZBzYkem2p ztlwo4OLjpgbRX8MfP+pFPTbqNcj8cVU28s7SMgFmIYhcfUl4LaSGJktBwEZoM5dtklS vj1H+b4PpnD6A7gdGTMktWGEVfLPMoH80gDsOFMRUYUvwTe2B/wH0dMmpsJ6eHqj+Nzp C4jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=BH3LY5Bs; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-203018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203018-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57a31ccac90si6418177a12.670.2024.06.05.11.05.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=BH3LY5Bs; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-kernel+bounces-203018-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203018-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1DA941F214EC for ; Wed, 5 Jun 2024 18:05:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B16314B06C; Wed, 5 Jun 2024 18:02:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="BH3LY5Bs" Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 F388F145322; Wed, 5 Jun 2024 18:02:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610570; cv=none; b=hrIbskc4yfL7OuuyfrQAtXZTBEeRa0Vn23EShfglt46x18vgkE/LinLiwF4zJfgiL5YL1ks5OD1fM6k86eQpa3eLNxifhW9OHWGoHJLfNND75NuB2+f7YWleMbMMUvHlZ4JzDKS+8ANk7lanyFCTvaXguGN0hWaaRQQGqNwRAaM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717610570; c=relaxed/simple; bh=uwUrfu/yzS/YNseKipCZSPaE2sZQzojPJmfSYmfQ2II=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=McuLFB9mc4G5a+VyT6iLFMyTo+Eoqrh/WmluKPjeeBvr+aSV9xs0GSCqZQ4YqejDW/H6ANwnznJ/JVxZFAA8CA8NWQi8yNMIRqAf9k1++Vxra0BCozVMxyFrC3Gcn7I1OneDFVPIabJLfrXKgAPPUxorEXTzLPZSr+xcyDHDK1c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=BH3LY5Bs; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=uwUrfu/yzS/YNseKipCZSPaE2sZQzojPJmfSYmfQ2II=; t=1717610568; x=1718820168; b=BH3LY5Bsae9vIWyOsa/qXHUk7LcIgC3yavKg8JyM+FPTk2E JguRCm6uYy3EvBeXqtsmuVgDehf5zk5cHYlV84elBBcRuaF2NwCz5KEOGtpjZj3//kHccqA2vbKlc qKrUC+/GNb+NiTFvs2gEdOLMmYJoRg54EKctmsEmxKNsXexWvVJhmjsijnrALB+OS4HM6uBePOL3u 7J19mdPD146PGqGlM+EkbbmOdrlZy/GSpfCnynK7yTWfN1iHBe636xh3QfyN4djFTbzyhw1bTZulR lVfUEifRRRKQ2mukbi8mP9aE70jaJetG16zmlNGgiezxT0oQfBzkwahewv/jJ9aw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sEuxm-0000000ErED-3wIf; Wed, 05 Jun 2024 20:02:19 +0200 Message-ID: Subject: Re: [PATCH] arch: um: rust: Add i386 support for Rust From: Johannes Berg To: Ard Biesheuvel , Nathan Chancellor Cc: David Gow , Brendan Higgins , Rae Moar , Thomas Gleixner , Ingo Molnar , Miguel Ojeda , "H . Peter Anvin" , Masahiro Yamada , Richard Weinberger , Anton Ivanov , kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-um@lists.infradead.org, rust-for-linux@vger.kernel.org, x86@kernel.org, Wedson Almeida Filho , Borislav Petkov , Dave Hansen , Alex Gaynor , Boqun Feng , Gary Guo , =?ISO-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev Date: Wed, 05 Jun 2024 20:02:17 +0200 In-Reply-To: References: <20240604224052.3138504-1-davidgow@google.com> <20240605062234.GE279426@thelio-3990X> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Wed, 2024-06-05 at 19:59 +0200, Ard Biesheuvel wrote: >=20 > > > -ifdef CONFIG_X86_64 > > > +ifneq ($(or $(CONFIG_X86_64),$(CONFIG_X86_32)),) > >=20 > > These configurations are mutually exclusive, so would it look more > > readable to have it be: > >=20 > >=20 > > ifeq ($(CONFIG_X86_32)$(CONFIG_X86_64),y) > >=20 >=20 > Or simply >=20 > ifdef CONFIG_X86 No, we're talking about ARCH=3Dum, so CONFIG_X86 isn't set, but CONFIG_X86_{32,64} are set as the "sub" or "host" arch. :) johannes