From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 29D7AF4612E for ; Mon, 23 Mar 2026 14:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:Cc:To:From: Subject:Message-ID:References:Mime-Version:In-Reply-To:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ow2cYCMn5EXbkFbtWklLmiMt9RKP3mI6kxfKs0fin8E=; b=O6ZnyM5qGCCpNh9mFmoa3W0MZa ywEVOARgc6Ohhn9MW61p7UVl1pPeqJt2d4qVgo2LttRKPrvnBpNjsYYxad2ZkYpBQPAW0HtdL3uNV n1P8owBYNh5bQuO/BKkbJIyYcr+U+eO1wr+fmLbwuND2Qr6gjyHqSvrPvTB24rGApZIdT9b8zaW+x YL0R0IKnwdozUa1S1XCZwFNCB4UfrUVAwyE1CIMPq3HxBlLer4dofXpi3iMukgJyrk6rmfaJEWLPa 6FDEcAB6N3kYqqoNxix6g1PpVnUhMk3G0ecap/u1UDujKT4xIITTb2uiqU7XK9OH+zqFpjGmqmCOB J11XM9Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w4gR7-0000000GwTW-4BUp; Mon, 23 Mar 2026 14:39:22 +0000 Received: from mail-wm1-f74.google.com ([209.85.128.74]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w4gR4-0000000GwSY-2Z7k for linux-arm-kernel@lists.infradead.org; Mon, 23 Mar 2026 14:39:20 +0000 Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-4837b6f6b93so23808215e9.3 for ; Mon, 23 Mar 2026 07:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1774276756; x=1774881556; darn=lists.infradead.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=ow2cYCMn5EXbkFbtWklLmiMt9RKP3mI6kxfKs0fin8E=; b=Y+y4rPh/0u6JCBZoY+wjYFzmBgawmmrR1zyMO7cKGIBULUtMzIVQq+aHnRJuXTWlV6 LDD2dcJ7xJ+A1D96gMOiL6xKeI7ZEC9MB4jQ+ytlHuIrPXbZbFQY/uzyBUQ9dIwbPAXB qQsF3LD2sM+xS4s5gjs3OXkZvlT0CktvU98w7yVQQfJAb9GCp9bEOTUh1uQs6IFHlkgx xz4nn/FdHwQAI+n2wiO1t1NHqpjve04ePxcCqNZEiwXO4jUS5G7glywci5pBLX7lkk5N cMkQDLQPt/WujZHXySJZcginIa/8nrt+mMZimv2x6N+YWoytTvf38wdT+QAkdrpR0lPl 0Yww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774276756; x=1774881556; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ow2cYCMn5EXbkFbtWklLmiMt9RKP3mI6kxfKs0fin8E=; b=T9MLbQ4U2dIYqn5nRvsMZ7rRv8rWlv9zNG1pwkCluhHbOJNLNUu0MlxIWabvxffb4U jQIPm/D+bbRHs9Hwfefe6Bc/3AHIaaPdcFgEiMo1cOTz7MsNfoJ0z4f+1wDWSw5Upc5p WYvUhNFIGOCRizpXJxoGfFjtvQg3fzcu7O+21B8Givw3Z9QxUuAqJI0YoBQHxuTtGkLR 23RyLJCygLQMShq+Af7GwNOqrJWbpqB8/dx+XqEmJbHc5Pny0n5rHYa/wiDvMZMn90lP gIS5NtP/clLu3qfB3IKw570sYBqMluJ9laB7YZCE5XjQI7xWp7Qfie6dCzoms3ERlWrW j4lw== X-Forwarded-Encrypted: i=1; AJvYcCV/jMJiDdco7hcd4DF4qb2NOyrxVCHSsHR5LUw2+2jCq1rTIM9EXzUC+zxvD3vPZ4/Hwf6o/UwfWRsT8ZPCNxUT@lists.infradead.org X-Gm-Message-State: AOJu0Yy9tcW8Yrv8+skVkN9a4M01VlV0hhGwiWXkEJ37jDLSgbRF3q2I UQ9sY8FPNDrMaL2kF6NdrX/BqjEARJ0A0/qamAyYMDWygE/qxr/zHkxx8JkLa2pRyFYAq7bJKnt FJSH43R3LHh0ff7MvDA== X-Received: from wmbej14.prod.google.com ([2002:a05:600c:3e8e:b0:486:fa53:8cfc]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a43:b0:486:fbd1:9dc0 with SMTP id 5b1f17b1804b1-486fee0d52fmr164091435e9.22.1774276755701; Mon, 23 Mar 2026 07:39:15 -0700 (PDT) Date: Mon, 23 Mar 2026 14:39:14 +0000 In-Reply-To: Mime-Version: 1.0 References: <20260322192159.88138-1-ojeda@kernel.org> <20260323000327.111235-1-ojeda@kernel.org> <96287f3a-d245-47cf-b7cb-f821451493d3@lunn.ch> <65336ad0-ac37-416f-b6ae-e691e3e375ae@lunn.ch> Message-ID: Subject: Re: [PATCH v2 0/3] Inline helpers into Rust without full LTO From: Alice Ryhl To: Andrew Lunn Cc: Gary Guo , Miguel Ojeda , Miguel Ojeda , a.hindborg@kernel.org, acourbot@nvidia.com, akpm@linux-foundation.org, anton.ivanov@cambridgegreys.com, bjorn3_gh@protonmail.com, boqun.feng@gmail.com, dakr@kernel.org, david@davidgow.net, johannes@sipsolutions.net, justinstitt@google.com, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-um@lists.infradead.org, linux@armlinux.org.uk, llvm@lists.linux.dev, lossin@kernel.org, mark.rutland@arm.com, mmaurer@google.com, morbo@google.com, nathan@kernel.org, nick.desaulniers+lkml@gmail.com, nicolas.schier@linux.dev, nsc@kernel.org, peterz@infradead.org, richard@nod.at, rust-for-linux@vger.kernel.org, tmgross@umich.edu, urezki@gmail.com, will@kernel.org Content-Type: text/plain; charset="utf-8" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260323_073918_656635_7463DCE2 X-CRM114-Status: GOOD ( 18.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Mar 23, 2026 at 02:28:25PM +0100, Andrew Lunn wrote: > > > If you want netlink on um, arm32, riscv, loongarch you would need a > > > different implementation of the binding? > > > > It doesn't need this feature to build and function. It'll just be a bit slower > > because inlining from C to Rust won't happen. > > So it sounds like my understanding is out of date. When the first > Ethernet PHY driver was being merged, Rust could not access inline C > functions. The binding had to replicate the functionality. But you are > saying that Rust can now make use of inline C code, but not actually > inline it? It results in a function call? > > What this feature does it actually allows inline C functions to be > inline? So it is just an optimisation? That's right, this series applies cross-language inlining to the helpers we have for calling inline functions. Sorry if I was unclear on the netlink patch series. I mentioned this series because you told me that inlining is important for skbuff due to performance (not for netlink though), and this series is necessary to make such code on par with C perf-wise. But if you accept the function call overhead from not having cross-language inlining, this series is not needed. Alice