Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2450813rdb; Fri, 8 Dec 2023 08:27:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IHO28ygRcqjBkk4yWygkZgaM93jspoDbCvQv0b6A9PTrjgyCdiHGOW11gMlZ5bEKLpw/lRA X-Received: by 2002:a05:6a00:a1d:b0:6ce:3efd:3951 with SMTP id p29-20020a056a000a1d00b006ce3efd3951mr308759pfh.30.1702052836493; Fri, 08 Dec 2023 08:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702052836; cv=none; d=google.com; s=arc-20160816; b=HRmlVmJ4EJbYFqmTPc+H6+zBou97+blFS0ltu24M+qeHYpFJDDrxN6VZUHFTtSpjOu ceexNA/lbW6I0JG1ZUjnJ9zzTH/ZclyGEcV4iM4rsuvaSXRyNczZPxylQB6iA+N6Y916 01WDEVZbulp2I4orfpebvOFJ+yRHy5Cpa9ZwPmrHaV7ylvK1FuAiZX3dmLPZOFINtiLY uSnPTV3YWqnM6OcW7I5pYykIwctBeTCGWorNCXY5Mymp6Iy8zftH7qtI1I269uF6Mbs1 nZaPJEHwz0EcGXDDblVMPlKneLGierhJo09UrksuMLJ/PxtH7H1i1ueY6JzDTtgxSlYk zt5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=t0CMqzi0Or9T5yhoHSEfgXb8zwflGCNNeN2wQKj6R40=; fh=tRiQstEM7VuCIMqmpcWMmcIRHJfCosYUeni4btIIcoM=; b=AHHFMA7O4Kd++wW8JNWnOm1kG3bmi3GQ3Sc0l+WDMS4qgi9+IKSB8ry4rvv8oIwRM8 nZkBwso31yzZYAP2UARkaNTTVJid+OlBtl2O9CzmAJHpsC4HmWySyAEVaGpbilvkSB88 JAwz/J3KHSJ+msovH1PZA8PR79KjonZBxXUR3wcf06Qcjei4vL1Rol9hZrEyBWq+qtYH iuPx+eAK5r3ulFfYSR9jgXObmb/dMCPrK266OZRtj24Arx56NPHdP0/Ke3OXNz44H/Rr e/hSJSMcxvbBWrrcx8b9tBsuEeetYv4VBuMV2C43uPcXT5wEGBaLGgLJ80ISeFA1GzfE SDLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=LXCHcDS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id g11-20020a056a0023cb00b006b9fd40d6cfsi1807672pfc.216.2023.12.08.08.27.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 08:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=LXCHcDS1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id EB1A28077453; Fri, 8 Dec 2023 08:27:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573968AbjLHQ1A (ORCPT + 99 others); Fri, 8 Dec 2023 11:27:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233485AbjLHQ07 (ORCPT ); Fri, 8 Dec 2023 11:26:59 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BED67173F; Fri, 8 Dec 2023 08:27:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=t0CMqzi0Or9T5yhoHSEfgXb8zwflGCNNeN2wQKj6R40=; b=LXCHcDS1GTsrpuzZ1wlJ6Ihawd hzs8XrN4sd8AxSDKY+8Gclm09YVmnTAYZM4xVc8KKtB3Xr+8johFi0vSdv0Q+fzDhteeco7mWVlIU Yu0ir3kL4MB6DKWcGy8B3MJCZgEGqQP9bpphlbMQCvIXck77pIL4IcJVvpnksW1UrDvV5+cHIT+TU 3Pv1z1WAeEKDZMoN7rc1eCoKNsmA/XceymQLjjJO8xk3Gf+Nh9A7kHrajHoDtHvwdYVngtTgEBYXq M4h5ncihw0LOjc5i0rruRuJLgR6UOrLZL6OZ33oAPtJyAp/rHd/D973O0KTx2MQQGQnyTqE5o19mw R6nmPklQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rBdg9-006dg5-2S; Fri, 08 Dec 2023 16:26:18 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 6E4C7300338; Fri, 8 Dec 2023 17:26:16 +0100 (CET) Date: Fri, 8 Dec 2023 17:26:16 +0100 From: Peter Zijlstra To: Kent Overstreet Cc: Christian Brauner , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alexander Viro , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Carlos Llamas , Suren Baghdasaryan , Dan Williams , Kees Cook , Matthew Wilcox , Thomas Gleixner , Daniel Xu , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 5/7] rust: file: add `Kuid` wrapper Message-ID: <20231208162616.GH28727@noisy.programming.kicks-ass.net> References: <20231129-alice-file-v1-0-f81afe8c7261@google.com> <20231129-alice-file-v1-5-f81afe8c7261@google.com> <20231129-etappen-knapp-08e2e3af539f@brauner> <20231129164815.GI23596@noisy.programming.kicks-ass.net> <20231130-wohle-einfuhr-1708e9c3e596@brauner> <20231206195911.vcp3c6q57zvkm7bf@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206195911.vcp3c6q57zvkm7bf@moria.home.lan> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 08:27:14 -0800 (PST) On Wed, Dec 06, 2023 at 02:59:11PM -0500, Kent Overstreet wrote: > I suspect even if the manpower existed to go that route we'd end up > regretting it, because then the Rust compiler would need to be able to > handle _all_ the craziness a modern C compiler knows how to do - > preprocessor magic/devilry isn't even the worst of it, it gets even > worse when you start to consider things like bitfields and all the crazy > __attributes__(()) people have invented. Dude, clang can already handle all of that. Both rust and clang are build on top of llvm, they generate the same IR, you can simply feed a string into libclang and get IR out of it, which you can splice into your rust generated IR.