From nobody Sun Oct 5 20:15:24 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 093EF86338; Wed, 30 Jul 2025 13:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880853; cv=none; b=hZLoxruh/BAcEa940vdn+PhTMLGV6ycO+saIOA95B6VPUi5SE44JW6YGtWk5sL3F11D3Lc99B+FXs5fGtU1wTkQKgUzWQG423Ael2PVanjraIR3NdrUU90330Sbqp0Hb9NSMJ3TufL1zYoSTcMuKWuxQAMj5nh0EBvvbfYtjFMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880853; c=relaxed/simple; bh=pxUeJv29yRg6Dx7iPk1Ji2QVfn9F9xAJgdgxpSSJiqw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tExM09ITE+pATBBBdGKMi7wd2FhgRIP0Dc7E4+Q4IykikTHhL1aduB1idL8BDf4KPaJkzgT1S1IBspaDL7NuMWgAmcNc2YwcDTkqFqXIDykWW4QKDrxT42GVvdCAjaH+F2+N4tHpAh+joePD/bR1nrbqM/4QFsEP9Mo4P16LDFo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DR8jBGJ/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DR8jBGJ/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2909BC4CEF6; Wed, 30 Jul 2025 13:07:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753880852; bh=pxUeJv29yRg6Dx7iPk1Ji2QVfn9F9xAJgdgxpSSJiqw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DR8jBGJ/KsozFTtd9LNrKeQK8dpxYwyg23wiKvPFMDGFGh9C+74tsr8/hoz6iPAc1 IYwmcYgd7iqjpW31MV/H9gXtTZhYlVTNcBEwi2IwBCUo5Je61Eq2lmojumgMx8naZo mbWQXxTK8AdmZSpTZ83ddmdURTVIsBGmEFEw5Jb8lRGtdqipQmV2dsq19tydBFyUCp N2MnJueXLfT8wKpdwyJpM/AoSgkFrnu960kO1YNF+evu6MwJNVI17l2vbvfDPg2Zdj URVvZ3aUYG/E8LeumNfLjBnV3HZpUhzzVAJtf917AiTzfJiYaEM3Oe8ahkClNZMhna O5RyRRymlOHuw== From: Miguel Ojeda To: Miguel Ojeda , Alex Gaynor , Andreas Hindborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH 1/3] rust: block: fix `srctree/` links Date: Wed, 30 Jul 2025 15:07:14 +0200 Message-ID: <20250730130716.3278285-2-ojeda@kernel.org> In-Reply-To: <20250730130716.3278285-1-ojeda@kernel.org> References: <20250730130716.3278285-1-ojeda@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" This `srctree/` link pointed to a file with an underscore, but the header used a dash instead. Thus fix it. This cleans a future warning that will check our `srctree/` links. Fixes: 3253aba3408a ("rust: block: introduce `kernel::block::mq` module") Signed-off-by: Miguel Ojeda Reviewed-by: Daniel Almeida --- rust/kernel/block/mq/gen_disk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/kernel/block/mq/gen_disk.rs b/rust/kernel/block/mq/gen_di= sk.rs index cd54cd64ea88..e1af0fa302a3 100644 --- a/rust/kernel/block/mq/gen_disk.rs +++ b/rust/kernel/block/mq/gen_disk.rs @@ -3,7 +3,7 @@ //! Generic disk abstraction. //! //! C header: [`include/linux/blkdev.h`](srctree/include/linux/blkdev.h) -//! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h) +//! C header: [`include/linux/blk-mq.h`](srctree/include/linux/blk-mq.h) =20 use crate::block::mq::{raw_writer::RawWriter, Operations, TagSet}; use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc}; --=20 2.50.1 From nobody Sun Oct 5 20:15:24 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D1B102980DB; Wed, 30 Jul 2025 13:07:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880857; cv=none; b=IdSLRhO7f/zbft5YmamZf7KvmOhcKAvErWtT1I/OnDkcPhbdjgMMG2ejVc0SufnDQ4+3jEwOqZ7+DwHlCBgudyBLfcjucK0c+8mPDGtDSICygSXi35TN+QgQve6rDzg1Rz923qq9Zamnradu6g7vZ203svl9bzljZUFjz12gcL8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880857; c=relaxed/simple; bh=F2q0GQGqh2AaMTpYDgf9tG4s1JlhvxttxPNy3dOUclY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=o3lW1apbICc29zsgN0bDD0RoVVSlvlCSaACWSZjdSKPxjhsB1ICPHlO+nSrq4Rnu2g2a8nWTG8JcO4p0xp43UE0x5AI86zHAtgxCbViACMRNYRws+u5+HVFbrIl6xTTB0yESg8K9dNCi1NKTI6RDMebPbvpGcymJ/Kr7wfJ3bXg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eJI2hEZb; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eJI2hEZb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 228B8C4CEEB; Wed, 30 Jul 2025 13:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753880857; bh=F2q0GQGqh2AaMTpYDgf9tG4s1JlhvxttxPNy3dOUclY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eJI2hEZbRdIkWwyv5psUNw73Vl7DEIc0YUKNvEzN12SJAf6owCvlfTgUUOPq6Boza jbE96pT/8TZLDpCi2O8yJXt8eblAqWWeXm+OS7Ks8YGuendzrNzPTr+kqVtRbRQ5wR FxY7hjsQL9YOHiIBjSjWMf5wd0i9V0bhDduwpDpr/F8/I+0eD8+90yST/Q0EY/NHPz /9GyDtSOhCupCC2F55a+pOGHp+R8kHeGYGsZE1O+oD+QQM4OFETa8zu0QOHjVIMA1n VcWGnZM6ZJekzDArHTFjE8Zhxjc2aSS/DdMkKkUC6AVo1AlJYZ+49WXZfRy3ttRlxl wEusv7wPSCEZQ== From: Miguel Ojeda To: Miguel Ojeda , Alex Gaynor , Andreas Hindborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev Subject: [PATCH 2/3] rust: drm: fix `srctree/` links Date: Wed, 30 Jul 2025 15:07:15 +0200 Message-ID: <20250730130716.3278285-3-ojeda@kernel.org> In-Reply-To: <20250730130716.3278285-1-ojeda@kernel.org> References: <20250730130716.3278285-1-ojeda@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" These `srctree/` links pointed inside `linux/`, but they are directly under `drm/`. Thus fix them. This cleans a future warning that will check our `srctree/` links. Fixes: a98a73be9ee9 ("rust: drm: file: Add File abstraction") Fixes: c284d3e42338 ("rust: drm: gem: Add GEM object abstraction") Fixes: 07c9016085f9 ("rust: drm: add driver abstractions") Fixes: 1e4b8896c0f3 ("rust: drm: add device abstraction") Fixes: 9a69570682b1 ("rust: drm: ioctl: Add DRM ioctl abstraction") Signed-off-by: Miguel Ojeda Acked-by: Danilo Krummrich Reviewed-by: Daniel Almeida --- rust/kernel/drm/device.rs | 2 +- rust/kernel/drm/driver.rs | 2 +- rust/kernel/drm/file.rs | 2 +- rust/kernel/drm/gem/mod.rs | 2 +- rust/kernel/drm/ioctl.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rust/kernel/drm/device.rs b/rust/kernel/drm/device.rs index e598c4274f29..306aaa783bbc 100644 --- a/rust/kernel/drm/device.rs +++ b/rust/kernel/drm/device.rs @@ -2,7 +2,7 @@ =20 //! DRM device. //! -//! C header: [`include/linux/drm/drm_device.h`](srctree/include/linux/drm= /drm_device.h) +//! C header: [`include/drm/drm_device.h`](srctree/include/drm/drm_device.= h) =20 use crate::{ bindings, device, drm, diff --git a/rust/kernel/drm/driver.rs b/rust/kernel/drm/driver.rs index acb638086131..6381cf57fb42 100644 --- a/rust/kernel/drm/driver.rs +++ b/rust/kernel/drm/driver.rs @@ -2,7 +2,7 @@ =20 //! DRM driver core. //! -//! C header: [`include/linux/drm/drm_drv.h`](srctree/include/linux/drm/dr= m_drv.h) +//! C header: [`include/drm/drm_drv.h`](srctree/include/drm/drm_drv.h) =20 use crate::{ bindings, device, diff --git a/rust/kernel/drm/file.rs b/rust/kernel/drm/file.rs index b9527705e551..f736cade7eb4 100644 --- a/rust/kernel/drm/file.rs +++ b/rust/kernel/drm/file.rs @@ -2,7 +2,7 @@ =20 //! DRM File objects. //! -//! C header: [`include/linux/drm/drm_file.h`](srctree/include/linux/drm/d= rm_file.h) +//! C header: [`include/drm/drm_file.h`](srctree/include/drm/drm_file.h) =20 use crate::{bindings, drm, error::Result, prelude::*, types::Opaque}; use core::marker::PhantomData; diff --git a/rust/kernel/drm/gem/mod.rs b/rust/kernel/drm/gem/mod.rs index 6f914ae0a5aa..95fb562cc968 100644 --- a/rust/kernel/drm/gem/mod.rs +++ b/rust/kernel/drm/gem/mod.rs @@ -2,7 +2,7 @@ =20 //! DRM GEM API //! -//! C header: [`include/linux/drm/drm_gem.h`](srctree/include/linux/drm/dr= m_gem.h) +//! C header: [`include/drm/drm_gem.h`](srctree/include/drm/drm_gem.h) =20 use crate::{ alloc::flags::*, diff --git a/rust/kernel/drm/ioctl.rs b/rust/kernel/drm/ioctl.rs index 445639404fb7..a19bc8eca029 100644 --- a/rust/kernel/drm/ioctl.rs +++ b/rust/kernel/drm/ioctl.rs @@ -2,7 +2,7 @@ =20 //! DRM IOCTL definitions. //! -//! C header: [`include/linux/drm/drm_ioctl.h`](srctree/include/linux/drm/= drm_ioctl.h) +//! C header: [`include/drm/drm_ioctl.h`](srctree/include/drm/drm_ioctl.h) =20 use crate::ioctl; =20 --=20 2.50.1 From nobody Sun Oct 5 20:15:24 2025 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 593AF2980DB; Wed, 30 Jul 2025 13:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880862; cv=none; b=E0aU6kQIgmxZ20Q97k9Jssny3GuQMBvQzkjYKMkT2E6MTLk/YjD8EjsmeMwxbC+KUolXuZr6PVMd01xRar7jfxYuQPDrcnvCo0MfwVIDfqgrYo37kxfzaDAFGtPdYl3b5Gmyhxts/jmgoj+753rddSiqGfd28xY22oXtoqvWfW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753880862; c=relaxed/simple; bh=MCKKk6h+3JEL6n0iy6Y6XeM4Z1b+uuvj/oVkrOFjj0M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uJxCJuLD/rtAn14+aKjdAwa3Ek2UyjumP7MtOHO2TL0DFbKw6OFfAw0fdFzliOq0vqL0KuMnfyUJXwx0/62nukr4X2WlT+5Fee4c2BpRrKoIll713BG2fGYUokd+3kNmSWKjELDw0lAf27hIqnDUh5sMSZKmEsG2xYPSQ9gsi7M= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nE40kn1E; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nE40kn1E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2F4EC4CEE7; Wed, 30 Jul 2025 13:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753880862; bh=MCKKk6h+3JEL6n0iy6Y6XeM4Z1b+uuvj/oVkrOFjj0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nE40kn1E8vb+JirYTULptewIKmCOOzLFKQ5jEk+yfgBr6ztVyn/NoeuR1ILlTa4Cr fE5XI/0rzTwnq9mwzDiKbJAH6mjXRGSO517gT0Dg5+AfnE+ejH0gPzwpz7lD/RlM60 fuDYO46LUk/zUcdpgT2Ez8GYxOdB5mCuckXrVCVmJVQFRYAHNRMv+Et0CrLcc9orXl L/q9YLIRSxKneEYQ34nJNOofcr6VTvDYcQ6XTbE56qXa/Yn63ShYu9FjTx2L0dAJFz cBG34Jst6PN7joglvLDSr8oCB/ToSyE3THMRd2h8WB6SADGPSVwTPWnL9Ra5tyC9w1 NlqVL4zWIt+rQ== From: Miguel Ojeda To: Miguel Ojeda , Alex Gaynor , Andreas Hindborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-block@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, =?UTF-8?q?Onur=20=C3=96zkan?= Subject: [PATCH 3/3] rust: warn if `srctree/` links do not exist Date: Wed, 30 Jul 2025 15:07:16 +0200 Message-ID: <20250730130716.3278285-4-ojeda@kernel.org> In-Reply-To: <20250730130716.3278285-1-ojeda@kernel.org> References: <20250730130716.3278285-1-ojeda@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 `srctree/` links may point to nonexistent files, e.g. due to renames that missed to update the files or simply because of typos. Since they can be easily checked for validity, do so and print a warning in the file does not exist. This found the following cases already in-tree: warning: srctree/ link to include/linux/blk_mq.h does not exist warning: srctree/ link to include/linux/drm/drm_gem.h does not exist warning: srctree/ link to include/linux/drm/drm_drv.h does not exist warning: srctree/ link to include/linux/drm/drm_ioctl.h does not exist warning: srctree/ link to include/linux/drm/drm_file.h does not exist warning: srctree/ link to include/linux/drm/drm_device.h does not exist Inspired-by: "Onur =C3=96zkan" Link: https://lore.kernel.org/rust-for-linux/CANiq72=3DxCYA7z7_rxpzzKkkhJs6= m7L_xEaLMuArVn3ZAcyeHdA@mail.gmail.com/ Signed-off-by: Miguel Ojeda Reviewed-by: Daniel Almeida Reviewed-by: Onur =C3=96zkan --- rust/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/Makefile b/rust/Makefile index 4e675d210dd8..a27503028216 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -93,6 +93,12 @@ quiet_cmd_rustdoc =3D RUSTDOC $(if $(rustdoc_host),H, ) = $< # and then retouch the generated files. rustdoc: rustdoc-core rustdoc-macros rustdoc-compiler_builtins \ rustdoc-kernel rustdoc-pin_init + $(Q)grep -Ehro '