From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: rust: inline some init methods Date: Thu, 04 Jun 2026 16:23:29 +1000 Message-ID: In-Reply-To: <20260530-nova-exports-v3-1-1202aa339ef7@nvidia.com> References: <20260530-nova-exports-v3-0-1202aa339ef7@nvidia.com> <20260530-nova-exports-v3-1-1202aa339ef7@nvidia.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Patch Review **Status: Looks good** Adds `#[inline]` to five methods across three files: `write_init` and `writ= e_pin_init` on `Box>` and `UniqueArc>`, plus = `pin_init` in the `InPlaceInit` trait. The rationale is sound =E2=80=94 these are generic methods that, when monom= orphized with complex type parameters, produce excessively long mangled sym= bol names that exceed `modpost`/`objtool` limits. Using `#[inline]` (not `#= [inline(always)]`) is the right choice: it hints the compiler without forci= ng inlining in every case. The cover letter notes that methods returning `i= mpl PinInit` were deliberately excluded since they don't contribute to the = long symbol name problem. All five methods are small wrappers around unsafe blocks that delegate to `= Init::__init` or `PinInit::__pinit`, making them good inlining candidates r= egardless of the symbol name motivation. No concerns with this patch. --- Generated by Claude Code Patch Reviewer