From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 701C521A19 for ; Fri, 13 Oct 2023 19:22:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ar7Z0wwU" Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5BF1A9 for ; Fri, 13 Oct 2023 12:22:22 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-53d9f001b35so4237231a12.2 for ; Fri, 13 Oct 2023 12:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1697224941; x=1697829741; 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=ar7Z0wwUOKGizkJFuUYsyL3+sCaPZhvkSQ2iYos1tkBylKt3i7BH7yDUk9QHL6G7Ak vNUEKBW0JGgdpBh6XIGgKjmp2nh47DbDo9M8QPQJ9rdFaI3Blsya/ntVAhX/J+90oyjd J/XbymmNfvjgBsQIvhkBWUZwPDD4iO30ejQhI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697224941; x=1697829741; 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=X4fgaGjpgRVzwFluazHZGQCebKxtYlum/30U0+tNYzi+Gb3oEpwoNHyhvUuF5DTr9G 2O6tDqvFs+4NlbG4qQIetuVMQ16M/SByFIltmiE7OOR8tTqmyew9UH33jPOoRXP2LBj5 MZS/oaDYR8W8kvwoknSZNdGrp4L4EXvSUBdqqQJiZsax1/d/Nj3PW7pUxf6ByrPmUP/e zNJVAeoHL8oGKAUBsAt1yjDqeuGCQakPiFfffrDSc2t0we18PefgB2sV/UZ6YGlR5vyW IPz5VMNXrTwJTgwCUZsPeenmGqVvoBJMvPL7MCsphgjLVsFvyUK6Peu8krTRRCtKQuGT cF0A== X-Gm-Message-State: AOJu0YzRFpEDJHQAJ7halr85+wrELt4nZWbKfmNf0ardYTNbRAjPTy7p yy7uMth75ddvoLHOK85GxETwkoRPx4jHa9iYQv8eNlrO X-Google-Smtp-Source: AGHT+IEyBUmCtpYD16XRrd8g/I+l93Qi1xQFlX9cvEd8oAZ5qCBb2JvF3d6zoS7EG3r4M5wvR+zBew== X-Received: by 2002:aa7:d94e:0:b0:527:fa8d:d40b with SMTP id l14-20020aa7d94e000000b00527fa8dd40bmr23692355eds.26.1697224941127; Fri, 13 Oct 2023 12:22:21 -0700 (PDT) Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com. [209.85.218.42]) by smtp.gmail.com with ESMTPSA id j17-20020aa7c411000000b0053635409213sm11905697edq.34.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:20 -0700 (PDT) Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-99357737980so403968966b.2 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) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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