From nobody Mon Jun 8 07:22:48 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 652073FE355 for ; Fri, 5 Jun 2026 05:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637018; cv=none; b=LY874jj+P4DDt6VP7gbREbReyGB9xduk4q+9fRf5xx4sCNbgeWIK4RtfDi9XdYK4ZcH1hKuSpExV8brwF0xBSGi9Jhehrx3pt8mTLleQkxpjOjK8q017qb3m1sgOM5AdSZJUUrafPEtJwsZA9OY3KCOE9zbBK9FKm8hQ9mVeJKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637018; c=relaxed/simple; bh=ewM9aNlXNMaCTdGGGxgxFrW8A0rEbzUNkaQO0+Jl4zI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uLll3bgiFIJJgV2NDlSitMKpAtKNdjAsJWlkj5K+OtMOREQFKyxjfn+O3wMHY0mPtg89fNVU02BQCGPOlMmXoPuPBtrLKc3qhL/VJKzlKgLkmoQQFlxODOFOdRZ5qfpmQXhcLv0uh2p8Qf5l+erFR8bky1NBw7O40wAlxPvXiH4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C9LoPHmq; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C9LoPHmq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52D971F00893; Fri, 5 Jun 2026 05:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780637017; bh=XbOg7WPLk0OnCbHsP0KPvHZ6rXK+yhY/bIYgntWItGc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=C9LoPHmqbfgOkfzR9PcCmWa/eaq3vLE1wRFhSRfSPXeioFRh5JFO9XBpkOzrhZNzh JD6MFwZ90BWJ+BM7KMwOd9oXG+0a+BEUQJTD8oZDDg6/PGjMtGtNVyLumx8CinBXkb IR0OPUaj2paBF7VYvZTuNGMa7/3wHjiQqKdiIvEm3mxYc9B2PozDf08dwrjLo8/QKA Q9rwofF/BMotAoHobFFY2/cOcUw482gBXayrOLLo4udJUMl9u7/kJ8JHnJ3cBFUBQf g8EpqyBysoGdfWiGbW7xRJqw9wwaX0xd+VVbUFc52aBmufmPxtJGxwPnmQVMPzXT++ ZJCyl+komA0mg== Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfauth.phl.internal (Postfix) with ESMTP id A51F5F40087; Fri, 5 Jun 2026 01:23:35 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 05 Jun 2026 01:23:35 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFrVVThTqT8bJJhflEbKi6jjaoRdHCe3/aaIcW9ckEVawwSkOr/1AYrtZ9NKCDbGc tw/dywjM+I35stMKpMTXQwO0SdL4GmE3ocgr3dXlubgN1UWUu4iVzBJc5Q1UDtbeHKHGNb tuJwPcilrCzzN1k0UdW+mgwOIuirfQMtStSQzWkGvELg3JmsSHD2CrFkTKJ8zUWlWi3GfD klvR8mf16w0WA51uHvXYxiIqMOPFsPHfDRJiCgvmlnaNIwtJTozitHgsWPJuoWKEbm+EMu lewJIeDUPNoQAKvu86osIj6tAzPIvFxhTJKXPO5L/BAHFP1DibRS/0trc5k4wCE41ANLmy UVtCVOH1pDszwjSkWN5C2conabnXlu4RDUa9AYCFj3sBqUTeGqhFSyyeCtCooErnmpVAzT Mu+R5L03g46oOUKZQIJRAU9QQzI6slLsiAqLcbgxW9mlxGZkX4xz8qYrKogNsbpGdvF788 UgtHHjNoRe8tTwfLHNG6KBT/zP+RkgrpA0KL1bFky+qZt4HvFYFbOkGWjBu3iXI/rtoPNL 7jRLvqgSxKoywJpY9/0EnQ0qKu7nkKSAIVfYvqMfSPfAjKCTFfbu6LdR/wPC9KqI25aOxt UAKzmytGBxDHlThfU7gKbwAtokIFigepPMJG8ra3PXEm/8OBKKW+VZJ3aoIA X-ME-Proxy: Feedback-ID: i8dbe485b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Jun 2026 01:23:34 -0400 (EDT) From: Boqun Feng To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Gary Guo , Alice Ryhl , Lyude Paul , Daniel Almeida , =?UTF-8?q?Onur=20=C3=96zkan?= , Miguel Ojeda , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: [PATCH 1/3] MAINTAINERS: Add RUST [SYNC] entry Date: Thu, 4 Jun 2026 22:23:29 -0700 Message-ID: <20260605052331.1628-2-boqun@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260605052331.1628-1-boqun@kernel.org> References: <20260605052331.1628-1-boqun@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable We have two pull requests on Rust synchronization primitives with 10+ patches in a row for recent cycles, so it makes sense to start the effort of handling this area as a group. Luckily for me, Gary Guo and Alice Ryhl agreed to help as co-maintainers, and we also have a talented group of reviewers: Lyude Paul started the SpinLockIrq work [1] and did an amazing job at improving the design and implementation. Daniel Almeida resolved the Lock issue [2] and he did a fair amount of reviews in areas related to synchronization primitives already. Onur =C3=96zkan started the ww_mutex work [3] and did an amazing job at consolidating various design requirements and decisions. Of course, this only reflects my own knowledge, and I believe they did way more outside what I'm aware of ;-) Note that having this MAINTAINERS entry is meant to bring more people to help on the synchronization primitives in Rust, which means for patch submissions and design discussion, please still involve the corresponding maintainers (e.g. LOCKING and ATOMIC), scripts/get_maintainers.pl should have this covered. Link: https://lore.kernel.org/rust-for-linux/20260302232154.861916-1-lyude@= redhat.com/ [1] Link: https://lore.kernel.org/all/20250828-lock-t-when-t-is-pinned-v2-0-b06= 7c4b93fd6@collabora.com/ [2] Link: https://lore.kernel.org/rust-for-linux/20260103073554.34855-1-work@on= urozkan.dev/ [3] Acked-by: Daniel Almeida Acked-by: Danilo Krummrich Acked-by: Onur =C3=96zkan Acked-by: Gary Guo Acked-by: Alice Ryhl Link: https://patch.msgid.link/20260415232830.8128-1-boqun@kernel.org Signed-off-by: Boqun Feng --- MAINTAINERS | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 882214b0e7db..7c0f853b881b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -23450,6 +23450,20 @@ S: Maintained T: git https://github.com/Rust-for-Linux/linux.git rust-analyzer-next F: scripts/generate_rust_analyzer.py =20 +RUST [SYNC] +M: Boqun Feng +M: Gary Guo +M: Alice Ryhl +R: Lyude Paul +R: Daniel Almeida +R: "Onur =C3=96zkan" +L: linux-kernel@vger.kernel.org +L: rust-for-linux@vger.kernel.org +S: Maintained +T: git git://git.kernel.org/pub/scm/linux/kernel/git/boqun/linux.git rust-= sync +F: rust/kernel/sync.rs +F: rust/kernel/sync/ + RXRPC SOCKETS (AF_RXRPC) M: David Howells M: Marc Dionne --=20 2.51.0 From nobody Mon Jun 8 07:22:48 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 69CBB3FE651 for ; Fri, 5 Jun 2026 05:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637019; cv=none; b=Ip1c+5EgDEXf7NQ+xVg0RUAicHbMy1tQ2DdqZ/TYypn5i81lYlgrPREX7gOOJMGkMGrbyJvWyP+Fd5bZn+xL8Fm6N6agZo+Gaw11zpYTR52nsDjRM076I6xf9w6ybBQVCkuY1HmY/vhr0W/mrHTfbRDmP396baXX5qygRWVVemA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637019; c=relaxed/simple; bh=ZdlYGJumHKoZOKGiksSHjcAcW9MAjRFhtKO147bVRyU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nvqZhX8+qvWpwUEsvlYPkNDEAhCd23SDt+/Zg+aK6t7cVuUJL8lvTmklQ7/F7voGi3z/J91iy+58A0B/weCI9QyfA6Kqm5VrtVVgNU0UfR32LZUb3jnmxDF2OAKthsvb8v83Rzy/BpdpA5EPieeHsMDEjBPwHVVoJaamwfiexhs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FjVhFuvo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FjVhFuvo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8B49A1F0089A; Fri, 5 Jun 2026 05:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780637018; bh=bUCZYh/PbQjpqPeDUpUQn+REiFWUHye81F7h68C0d38=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FjVhFuvomaXFQcc3lGuyHkqUEQNlN3Rm41QjIxQVhN/qQTnyeDkhdx2ngv2F9czym GAr32ENjUljw7YlcWgDpUS+vFaX4jLPN/M4O5y+89D19nAgB6muPGaXSumdtQALTiG 1XbeB1pp45DAvY6LduAbbHCou86eVtjy3aMthCWsKlIWTi5drFnIu+1Cn1TvlDkF5n Zep1Zsm5/jYEiVSLp3Y1+FV3zKKgdoQm7Wuf0li1QRavIWr7cHoLlMv5uG1XYXOCCj /2Hr5LCep9d8OLEuO+dxF9c3c8EP65dtmgVx+O6MWy2d5jNwX5M12r4RMFmOHtbCTA e/JZhD1Z9XfgA== Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfauth.phl.internal (Postfix) with ESMTP id D404DF40089; Fri, 5 Jun 2026 01:23:36 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 05 Jun 2026 01:23:36 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEINg2JP7CC2j0uBv3bctD9XT1AD//I24n4hb8wNfR2zWW5EP4mYWbXjwlnvmgVEn uUi4+SVc9+eENn4WTaIHLH14cpiyAqUMgMfNeLxqJhx/vSeQGl9wVCrWfYH0ZeMxFiCKKY pHrUEp4aShf5PVH3J0duQMDB+J8l58PbIT7EsIc5P47XdYwqAcuBZaHsosv1a2GdUqlY0C CVZt7Rf0NvXC49fQuRW7COFntIRj5z6n+HUUe13FJ4mz/fSBa4zmRP8wuBRfyHYGXA1Ztc epz2yU5SSxVBzkL+028bVaCdwWiqveGk59hEnvMqSVPdJlNgtaScwJXDgjegXjDQd7c1aF VtRXfTaqdVZX0+UYEnk+JStR6p+37cnrZc7/Bv8CPxZ2V3uQa/gOsbzC7HS9jcGz4+ChZv 8y24EJAh6vYJxX2tGil0MC5fMUoPDwsEKAKn/J9QB05VBLHTG+dhJnkidhG7MemCCaz1od Ogj7mYpHsf98y98Iladid3vDbbUUv0QJI/00ggF60NrhA5n4RnFSEKC8NuEJZ4HYapQ2e4 6V9WTOr3H/PnrRX19+ALn7jE29ANlxXawn6drjRhSCOu3eilu5y4CangzYdEmwS7qlHLxN Jl7EiGnxTax0F5HnbmhUGIHvwWvQYDjdsVkBVOWJLE3+qaAhE9eJbf9RriHQ X-ME-Proxy: Feedback-ID: i8dbe485b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Jun 2026 01:23:36 -0400 (EDT) From: Boqun Feng To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Gary Guo , Alice Ryhl , Lyude Paul , Daniel Almeida , =?UTF-8?q?Onur=20=C3=96zkan?= , Miguel Ojeda , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Thorsten Blum Subject: [PATCH 2/3] locking/lockdep: Replace snprintf with strscpy in seq_stats Date: Thu, 4 Jun 2026 22:23:30 -0700 Message-ID: <20260605052331.1628-3-boqun@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260605052331.1628-1-boqun@kernel.org> References: <20260605052331.1628-1-boqun@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Thorsten Blum Replace snprintf("%s", ...) with the faster and more direct strscpy(). Reviewed-by: Waiman Long Signed-off-by: Thorsten Blum Acked-by: Waiman Long Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260318001426.2664-3-thorsten.blum@linux.dev --- kernel/locking/lockdep_proc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/locking/lockdep_proc.c b/kernel/locking/lockdep_proc.c index 1916db9aa46b..e458fa258d05 100644 --- a/kernel/locking/lockdep_proc.c +++ b/kernel/locking/lockdep_proc.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include =20 @@ -488,9 +489,9 @@ static void seq_stats(struct seq_file *m, struct lock_s= tat_data *data) const char *key_name; =20 key_name =3D __get_key_name(ckey, str); - snprintf(name, namelen, "%s", key_name); + strscpy(name, key_name, namelen); } else { - snprintf(name, namelen, "%s", cname); + strscpy(name, cname, namelen); } rcu_read_unlock_sched(); =20 --=20 2.51.0 From nobody Mon Jun 8 07:22:48 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 B18D03FFAA4; Fri, 5 Jun 2026 05:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637020; cv=none; b=CGWqtvtKu/EaB98hk9CSBkra8vqo+xW+2UFebh0aswsEP7R6TKuPWX83sBEh3uUUWcpH0+QZ+dItPrkJe2cHe1PkgxuwUcCH9weCxIn+EicXTzW4rYc5An118+lmkZJqKXzPMrs1gq8QyFeaCHa07b9LCQTdzLMoVu5JudGEQ08= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780637020; c=relaxed/simple; bh=O5U9/mE/ws0WC9A9baVp+Em13U8kMcULebFgHo4una4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CYLfeJvEc1xOeOlFoocJDtjsxw7DSt9kt3HOQcm9DWxvQNRvdVhjW+yrx+Kh4P3cEKxvjyNehna6v0TSCMVQbkVdhImhcKs4cWMDEZD6cVzand5S9sxARKxUuZemvBUKPiB1SLdB2K2fovNARKTsnQphTAn9i5vQDqTz8eV/xi0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QyKpLKpe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QyKpLKpe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E698D1F00898; Fri, 5 Jun 2026 05:23:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780637019; bh=0eq71ClCc2y2QnZZklcpAKj/F5X2bJEmtSbXujLM+2c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=QyKpLKpeJ//6k1pz9IfJOnxeJzxjzIlCrukITz+c/fV6eKR7eceUu3mmqFVvNe1LK AHSgTClweEEA3FDPw5mRixsup5ZEe++KY450wyWaozQLW2uyr0ayQtHxWatG5toefb gWyhyIJBY2Yoy+5X8IqeZXIz/ycbwZZqJKC2l2B7+30rgL3xewZIt9f4KFyz+/5FKZ Z7kg6L2dfoO+WklCHRl32ecrLxOGJG/DvOJzwEMlK8Fkr4SRLtVW7xyL1K8eBAegQe 2ZB5Tp8iiq7CaleHcrPESQ43MqHx19ugIMpACHkGya+dcwYQvrmzzPMjQFyec9r7dL DSMW7G/tV998Q== Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfauth.phl.internal (Postfix) with ESMTP id 45D07F4008B; Fri, 5 Jun 2026 01:23:38 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-02.internal (MEProxy); Fri, 05 Jun 2026 01:23:38 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGVFc55oynbaSnStRiW6SrUZLe7lsFvszDeVCl7MvIXzrJlTiksVD7ngpaPNtnBA0 xzpe0KAcgjxOnzHwp6rZ9Ql7S0lC44ptRJ0hsl9aktWp207P//NWvfBaH6pyJtCaRIDIg1 1zZ1CdVquqOEtD75Kj985uzC9ToB2LMOrhRjDA6MOXxbEX/kmztAQYeGB9EXpSS/4TsRe/ 6Qf2l2+vPx+b+fqTQ9BeHNLfkuvUD1sPfcbNHNhL+jGtKJIC6o5BUIo4+ewgiSabQMG/02 r+GRrWdB/QHVTqnWjec/xWbuSPNl4GSruprwTDU0SGp0gFAVp9fQrfcQkLrzvZFpXXrDnB EQZnD4lBIGT0YBWvBs/Vu+Gnm1NnNyA+jBGHof727VuVuJIYWmIM3HcRnsYmxwtRm9ElrV fofYqK7TiATjCQHWu3gfDSLYKI9G1EhgBxoXFmh8Vi3XSuWLszIZHLsyoNLxmavArTLFtf 6+Rru3IJ1L1mZ6SMh8+ys4Kzhej8YHaLi9I1gGiq5BSi46OS2XRo3Vbs3J+NSvr7uANBBy 1efnS2XFIyXCRAh6q8qh5JLN8W5OejGvsRisq1Yy5wo5MAcdlzM1LVeSUVrSBCN8318fCI 6w3s1oynxQ1TW3LSunDBcDJDUugEEALZEbAwa26qQ+AcNUEzcMECo6kUK/uA X-ME-Proxy: Feedback-ID: i8dbe485b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 5 Jun 2026 01:23:37 -0400 (EDT) From: Boqun Feng To: Peter Zijlstra Cc: Ingo Molnar , Will Deacon , Boqun Feng , Waiman Long , Gary Guo , Alice Ryhl , Lyude Paul , Daniel Almeida , =?UTF-8?q?Onur=20=C3=96zkan?= , Miguel Ojeda , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Fabricio Parra Subject: [PATCH 3/3] rust: sync: completion: Mark inline complete_all and wait_for_completion Date: Thu, 4 Jun 2026 22:23:31 -0700 Message-ID: <20260605052331.1628-4-boqun@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260605052331.1628-1-boqun@kernel.org> References: <20260605052331.1628-1-boqun@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Fabricio Parra When building the kernel using the llvm-22.1.0-rust-1.93.1-x86_64 toolchain provided by kernel.org with ARCH=3Dx86_64, the following symbols are generated: $ nm vmlinux | grep ' _R'.*Completion | rustfilt ffffffff81827930 T ::complete_all ffffffff81827950 T ::wait_for_complet= ion These Rust methods are thin wrappers around the C completion helpers `complete_all` and `wait_for_completion`. Mark them `#[inline]` to keep the wrapper pattern consistent with other small Rust helper methods. After applying this patch, the above command will produce no output. Link: https://github.com/Rust-for-Linux/linux/issues/1145 Suggested-by: Alice Ryhl Signed-off-by: Fabricio Parra Reviewed-by: Gary Guo Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260316151056.287-1-a@alice0.com --- rust/kernel/sync/completion.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/kernel/sync/completion.rs b/rust/kernel/sync/completion.rs index c50012a940a3..35ff049ff078 100644 --- a/rust/kernel/sync/completion.rs +++ b/rust/kernel/sync/completion.rs @@ -94,6 +94,7 @@ fn as_raw(&self) -> *mut bindings::completion { /// /// This method wakes up all tasks waiting on this completion; after t= his operation the /// completion is permanently done, i.e. signals all current and futur= e waiters. + #[inline] pub fn complete_all(&self) { // SAFETY: `self.as_raw()` is a pointer to a valid `struct complet= ion`. unsafe { bindings::complete_all(self.as_raw()) }; @@ -105,6 +106,7 @@ pub fn complete_all(&self) { /// timeout. /// /// See also [`Completion::complete_all`]. + #[inline] pub fn wait_for_completion(&self) { // SAFETY: `self.as_raw()` is a pointer to a valid `struct complet= ion`. unsafe { bindings::wait_for_completion(self.as_raw()) }; --=20 2.51.0