From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A4221EB9E8 for ; Tue, 11 Mar 2025 08:06:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741680403; cv=none; b=dShk0WYyZmkuz11c1hHp6gcCCuxB6R/5VddXTWHpSJAes/LjAaCfHg9DKXlXDMNDHfUmjN+RBpyTgRTS0mq8OCmHpC9QcdVb5S0X9p8kbpvh/pAODwi73VW1sGyP5bPAJleEl8QdU0im70mmjqjxmrL2VB/svJc3r3pq3Capo7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741680403; c=relaxed/simple; bh=GqsHdypcLuJf8lTVxKP4YCkbR9d4MU9dFUFykzw15j8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=jECydEc52+c9bivdiO9KGjp14wwW2fKdU5G5Drw+ZBuxI9SIKDt4Bs03w4aHYmkf1JsHSCCGL2Mljwfoe2QfiCGLKhnElrZzCBDQar1X1VTI6qTjmLhKpbYiSFjZXQg1y5SNw515T+nbULDJTyll+M0CfqkGOzsS5X6UUZvbusI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=eZdIfRay; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="eZdIfRay" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-43cf5196c25so10683085e9.0 for ; Tue, 11 Mar 2025 01:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1741680400; x=1742285200; darn=vger.kernel.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=+xcm0K1L7sxdR65HoWG0zR/e3ats9JqNWJReeEzbxwI=; b=eZdIfRaydJldutouRnhboKjmJt3txSO5ejItY67ZgKeyGB17410Rci9Rfq7vrgvNQQ 9N/easXZw0AIVzNm+yoTcL7mTr4nbwZTbfkXtQWNtuzfaA95FpGKbhAfwzGxkyExnuUO EO8KmPgzKom9oZ1GeM3UXgPIK3579KKA7adl1RbXzjQRLwRJXYm+uui8yWsMfHY2gmj0 ifhOSzN1DBvSifC+I0ZV0OOuCG9D34iDlcy4jkXwzMR8uVyWm9kJGlc+Xs6JQUx1fl/l 7bvmbUS8oBKP/npM5HdabPUxR2sfrFrthUhLBqg7jVbUE5+omZCkYzsIhbyI7UcoGZIY PeFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741680400; x=1742285200; 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=+xcm0K1L7sxdR65HoWG0zR/e3ats9JqNWJReeEzbxwI=; b=GSbEsijuCgnU2BJ9kX2uDePP5xyPHCj9o7T1Zl8kZsG8jc8QVvV08pWcVEFDJri2Dg u/AeeQvECsIGjlCqiLu1VZMClBLSD29etrRpYyqW+K+TRqoDDLCGhYYC7unyGA5dqGHQ +CN6O7bwUnlerxgBPbHu56rhxHltzn7+lo8QQ4s35R+Rwob1gJKMkKsg9UIRVI1UpyaZ Lt29DtksGu5jZJGiqmFKGXy7uLKQ6FkuZovTW/SiDvfF99fbLkrs6hyZSQY7EdAT0yV5 FiL/6X3NuVMQXPvTA0xCL4YgwPJesyICEIfzrkPHzixO3n7ND1ZSpqV95eHojXWOmSUm yj3A== X-Forwarded-Encrypted: i=1; AJvYcCWweUNwABkB9Bk6/wKav23xHmSwgSjlbqdZxmDXJfstZHXqMaHJeCBspNy5sHtqFIcO+1VP5sU24PxewC4=@vger.kernel.org X-Gm-Message-State: AOJu0YyweN+Wi+HW8YoYqT4dufitUVwjbCQhioOJ+upK2k8SG3B7vO7q H90X8ceRhJiPoc2EFCnsAswHPD2xsMEfnaF+FCqjV7h2yimVaUs9C6BdYFr7jbpq2eqQ2yfwXjY lm79Y9QrbnLuHdA== X-Google-Smtp-Source: AGHT+IGcrrTZTG+W6fZIwGjmzmkf4h8EJ1uAraxQiM1Mg0fkq2kWsZ8HARHFOyd2xy638gr8elcSnBE/hFQsuNY= X-Received: from wmsp32.prod.google.com ([2002:a05:600c:1da0:b0:43c:f3b7:f2d7]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a5d:64cb:0:b0:391:40b8:e890 with SMTP id ffacd0b85a97d-39140b8e9f4mr9380366f8f.22.1741680399906; Tue, 11 Mar 2025 01:06:39 -0700 (PDT) Date: Tue, 11 Mar 2025 08:06:37 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: Message-ID: Subject: Re: [PATCH v2] rust/kernel/faux: mark Registration methods inline From: Alice Ryhl To: Ethan Carter Edwards Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , "=?utf-8?B?PT91dGYtOD9xP0JqPUMzPUI2cm5fUm95X0Jhcm9uPz0=?=" , Benno Lossin , Andreas Hindborg , Trevor Gross , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="utf-8" On Mon, Mar 10, 2025 at 03:51:38PM -0400, Ethan Carter Edwards wrote: > When building the kernel on Arch Linux using on x86_64 with tools: > $ rustc --version > rustc 1.84.0 (9fc6b4312 2025-01-07) > $ cargo --version > cargo 1.84.0 (66221abde 2024-11-19) Is there a reason you didn't drop this from the commit message? > $ clang --version > clang version 19.1.7 > Target: x86_64-pc-linux-gnu > > The following symbols are generated: > $ nm vmlinux | rg ' _R' | rustfilt | rg faux > ffffffff81959ae0 T ::new > ffffffff81959b40 T ::drop > > However, these Rust symbols are wrappers around bindings in the C faux > code. Inlining these functions removes the middle-man wrapper function > After applying this patch, the above function signatures disappear. > > Link: https://github.com/Rust-for-Linux/linux/issues/1145 > Signed-off-by: Ethan Carter Edwards On v1 I replied with: Reviewed-by: Alice Ryhl So you should add that to the commit message when you send a new version. :) (Unless there are changes that require me to review it again.) Alice