From nobody Sun Feb 8 05:42:11 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 0BCA031AF1F for ; Thu, 22 Jan 2026 22:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769119861; cv=none; b=iwVcnv1GjIAGGnSyn0Xru0qp9/raAQkl2BO+ds0UzXtrdO6I/TtwB0K6QZjsgi9fTJruQA9DqP6vOu+9FWfOBY3n5idErwTNzjBY9+aZt1yUno+FrjN1jKgtOKwR51saoNEL4/yXZXAv9dqyc9YTvIjC6/eNk76hGcnez0MJgms= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769119861; c=relaxed/simple; bh=Bghe/LHsIOtmWL69KUv9i/gZNxOQ8gSgG7QDM9CHwpg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lL6xre927Aep19CPL1DUMT9FgwH6v1LhBHwZQxznxtrYxbHd4EMBsCjvJ6kspkpanZUahcYG9enW4GBhpVODNuLNZbLtP0NFscQKwCBH86+WCmjt8mx/IO5h0zgrNUtBnCr96pLXTPVs5RXK6VCBpCKTfKYxnI4FxdSmNIMVqYE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=HhfEFkfK; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HhfEFkfK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769119853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=sNviksuh25+5lQE2BUp1QrgnN7wcP+X7oJ6GwJF6NYY=; b=HhfEFkfK9cNSkhGMxdFYVR4mfHnLFIM37FM0fc66Ac7slSkNSCTCS3jXMWnaj4/u3T59/2 eQWYreDzwjm4sCci9PQsvrNRaZtTyuVDPMzjrwBipyT5pnLjERKApxkLdYLiEpqX5tBXie MgC8jtZgR72+P8qtH7Nc3KtmFa7y73U= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-487-1wilEl0INgGh_FIT1SjC8g-1; Thu, 22 Jan 2026 17:10:43 -0500 X-MC-Unique: 1wilEl0INgGh_FIT1SjC8g-1 X-Mimecast-MFC-AGG-ID: 1wilEl0INgGh_FIT1SjC8g_1769119841 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 89E8618005B4; Thu, 22 Jan 2026 22:10:41 +0000 (UTC) Received: from GoldenWind.redhat.com (unknown [10.22.89.232]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 182481800665; Thu, 22 Jan 2026 22:10:39 +0000 (UTC) From: Lyude Paul To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, Danilo Krummrich Cc: "Miguel Ojeda" , "Simona Vetter" , "Alice Ryhl" , "David Airlie" , "Lyude Paul" Subject: [PATCH] rust/drm: Fix Registration::{new,new_foreign_owned}() docs Date: Thu, 22 Jan 2026 17:10:37 -0500 Message-ID: <20260122221037.3462081-1-lyude@redhat.com> 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 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" Looks like we've actually had a malformed rustdoc reference in the rustdocs for Registration::new_foreign_owned() for a while that, when fixed, still couldn't resolve properly because it refers to a private item. This is probably leftover from when Registration::new() was public, so drop the documentation from that function and fixup the documentation for Registration::new_foreign_owned(). Signed-off-by: Lyude Paul Acked-by: Danilo Krummrich --- rust/kernel/drm/driver.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/kernel/drm/driver.rs b/rust/kernel/drm/driver.rs index f30ee4c6245cd..e09f977b5b519 100644 --- a/rust/kernel/drm/driver.rs +++ b/rust/kernel/drm/driver.rs @@ -121,7 +121,6 @@ pub trait Driver { pub struct Registration(ARef>); =20 impl Registration { - /// Creates a new [`Registration`] and registers it. fn new(drm: &drm::Device, flags: usize) -> Result { // SAFETY: `drm.as_raw()` is valid by the invariants of `drm::Devi= ce`. to_result(unsafe { bindings::drm_dev_register(drm.as_raw(), flags)= })?; @@ -129,8 +128,9 @@ fn new(drm: &drm::Device, flags: usize) -> Result { Ok(Self(drm.into())) } =20 - /// Same as [`Registration::new`}, but transfers ownership of the [`Re= gistration`] to - /// [`devres::register`]. + /// Registers a new [`Device`](drm::Device) with userspace. + /// + /// Ownership of the [`Registration`] object is passed to [`devres::re= gister`]. pub fn new_foreign_owned( drm: &drm::Device, dev: &device::Device, base-commit: 6ea52b6d8f33ae627f4dcf43b12b6e713a8b9331 --=20 2.52.0