Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1171411rdg; Fri, 13 Oct 2023 12:23:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IELgxXlkzTqIBKzsAOqvCAfOINd/viDh2WD+q5uOI5OuNLGa7SEVIiyQ+3PrMUAxAATkBIX X-Received: by 2002:a9d:7b52:0:b0:6c2:2bca:7a14 with SMTP id f18-20020a9d7b52000000b006c22bca7a14mr29692620oto.23.1697225004056; Fri, 13 Oct 2023 12:23:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697225004; cv=none; d=google.com; s=arc-20160816; b=fmAtCXrjcoIUbi/Rr3Ycx+ROeerAPdl13nYxe6cHjlikA+Zr4vOyvsjAZ6JxLSK9kb HWhfDpu4Orvdy1jVPObp8FrtdBzaKBTm44QULvPF8tFKSg20idFy/97H7ncUh6SGVknG EzeYXYm3OHaZtof4SWbPNGNRd/84VdAYJZyQa66cxsnz3Ek809EaLOJeqZb9QLgGwErZ nJXNv9BDScrIgnKxqNlb9CMXrDztSGkXRBx1dahxzeVm8wkJMqFFn3Uyksrjaf0VjCBK KwoCLjsiK0J6eJ5xweblEUiRYvvXOC1CCMlIUR7CE3uFeN7mvh6rDmIHjwqU37F4ZXV0 nmhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yMlHIs+RXRwcCam9b7W7YcpdMJXw0XO1+U1rinkBh7Y=; fh=i534PZowpDEbCZsed57S2g6WAAxRWLhFBh/gnthzHr4=; b=wG+WM6qbyMInBA8v05RQ0IGsAzaWiWMROHItDrggdMlF24tgjg64gK6DyTJn5Qtg07 xoE+IQcHiXzKJhwg/5mkd7U+Cx3yDIQY5nOXQGAv19jDBoVVDVm5eiYQlsXfCLG6KwvY oaGKPM3zc188GpPLsXyvxZWVLZtFN0sWhKLhgJWR6V7kIXMGVlx+8F9WWEI4wzO35E+j kzrVTU567c1jc4LbdB+dHCo0bcU5OWBGBbtHqCE7NGxXOSGeRZ09KOgjqMSiPAxTu1o9 hJOPfXJtQ5mk+T2KZdP2jgNLBPAuaeGn9/8ypEJC2DMYcWiswlzoaI7pZ6oRluaWsPSg +iXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="B2UXJ/8U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f8-20020a056a001ac800b0068a54e524d9si17818465pfv.150.2023.10.13.12.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 12:23:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="B2UXJ/8U"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 1F839808BD33; Fri, 13 Oct 2023 12:22:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231704AbjJMTWY (ORCPT + 99 others); Fri, 13 Oct 2023 15:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231468AbjJMTWX (ORCPT ); Fri, 13 Oct 2023 15:22:23 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A213A95 for ; Fri, 13 Oct 2023 12:22:21 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9ba081173a3so404022766b.1 for ; Fri, 13 Oct 2023 12:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697224940; x=1697829740; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yMlHIs+RXRwcCam9b7W7YcpdMJXw0XO1+U1rinkBh7Y=; b=B2UXJ/8UW+lWrvcfgGZ79/xVAgiwWwCcEzlsu5QD4aRfSd0ppsdnw/aHTXkDVhK1+p erS3XncMNha87j7pXShBzshTdQGxAoq9oXXwYo7SD0Xmi9WNomuuVkuS43f6j20tFFEW uuQDwbsKi2hSojyJsSd/39B9If/BlzqXP0nT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697224940; x=1697829740; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yMlHIs+RXRwcCam9b7W7YcpdMJXw0XO1+U1rinkBh7Y=; b=Nu9iXPqzBZXCsOgxyAxjcziBQJ2DcT7uFyeSCJi9hItzaFa4YdjdjyCgghcV3kCvjs 2HVkBeruXJ1joDnUdlTGRQXSF/VE9MrmXtdLp1VcTkPWd5aNnRBX4RiVm4lhzD4DxuRx rzwroo4DbmQsr8JV5O65LHi4VyBJ1azwyFVBPNUzu19ZPDaaxH/JecMDQoky4Aq6hSD0 bi1kO+9UVJQJ1pdbg2r+qhNbo26jjPSDCY24+8CM/5Ec2iiMyShow/MaETlHyb8tvODY krUBJ9ddmkgPsylkI0nfDO/lL8QaHs6XvXBlJ0WaNHiQsEkjei3MUOhBRRsxwr/feoqJ sa0w== X-Gm-Message-State: AOJu0YwbZJLiMIcz7E6exJNS2/94V/GRrDJJnBXNWwVTVWcq8PTcEWZD ABJ9/4vMcWkAUS6YolTH4NT2pSyvlubwjcOTuA9tVxi7 X-Received: by 2002:a17:906:99c2:b0:9be:7b67:1674 with SMTP id s2-20020a17090699c200b009be7b671674mr40974ejn.3.1697224940182; Fri, 13 Oct 2023 12:22:20 -0700 (PDT) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id g21-20020a170906349500b0099290e2c163sm12607067ejb.204.2023.10.13.12.22.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Oct 2023 12:22:19 -0700 (PDT) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so403547066b.3 for ; Fri, 13 Oct 2023 12:22:19 -0700 (PDT) X-Received: by 2002:a17:907:7790:b0:9b9:facb:d950 with SMTP id ky16-20020a170907779000b009b9facbd950mr17575861ejc.72.1697224939431; Fri, 13 Oct 2023 12:22:19 -0700 (PDT) MIME-Version: 1.0 References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-26-ojeda@kernel.org> <20231012104741.GN6307@noisy.programming.kicks-ass.net> <202310121130.256F581823@keescook> <20231013075005.GB12118@noisy.programming.kicks-ass.net> <5D8CA5EF-F5B0-4911-85B8-A363D9344FA7@zytor.com> In-Reply-To: <5D8CA5EF-F5B0-4911-85B8-A363D9344FA7@zytor.com> From: Linus Torvalds Date: Fri, 13 Oct 2023 12:22:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v10 25/27] x86: enable initial Rust support To: "H. Peter Anvin" Cc: Ramon de C Valle , Peter Zijlstra , Kees Cook , Sami Tolvanen , Miguel Ojeda , Miguel Ojeda , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Wedson Almeida Filho , David Gow , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 13 Oct 2023 12:22:32 -0700 (PDT) On Fri, 13 Oct 2023 at 12:01, H. Peter Anvin wrote: > > Transparent unions have been standard C since C99. Ahh, I didn't realize they made it into the standard. In gcc, they've been usable for a lot longer (ie --std=gnu89 certainly is happy with them), but the kernel never really picked up on them. I think they've mainly been used by glibc for a couple of functions that can take a couple of different types without complaining. Linus