]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpu: nova: Use module names consistently
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Thu, 7 May 2026 18:49:26 +0000 (02:49 +0800)
committerDanilo Krummrich <dakr@kernel.org>
Sat, 9 May 2026 21:51:49 +0000 (23:51 +0200)
Update nova/Makefile and nova-core/Makefile so that nova-drm.ko and
nova-core.ko are produced, matching the module names set in patch 1.

Update drm::DriverInfo with the correct driver name and vendor
description. Fix Kconfig help text for both drivers and the debugfs
directory name in nova-core to match the new module names.

Closes: https://github.com/Rust-for-Linux/linux/issues/1228
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Link: https://patch.msgid.link/20260507185012.1527139-3-yphbchou0911@gmail.com
[ Change commit subject to "gpu: nova: Use module names consistently";
  slightly adjust commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nova/Kconfig
drivers/gpu/drm/nova/Makefile
drivers/gpu/drm/nova/driver.rs
drivers/gpu/nova-core/Kconfig
drivers/gpu/nova-core/Makefile
drivers/gpu/nova-core/nova_core.rs

index a2028b8539d73b2e2b57e1a305aa755da096c44c..ba16c74401f8f2b46ca6593fe40921b2fdc5570f 100644 (file)
@@ -14,4 +14,4 @@ config DRM_NOVA
 
          This driver is work in progress and may not be functional.
 
-         If M is selected, the module will be called nova.
+         If M is selected, the module will be called nova-drm.
index 42019bff317319bdfc1b6517be6ba048cf595f34..f8527b2b7b4abb3b7d2adbe6878df1af5ec15fee 100644 (file)
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_DRM_NOVA) += nova.o
+obj-$(CONFIG_DRM_NOVA) += nova-drm.o
+nova-drm-y := nova.o
index f8f7beeccb131bbdff36de7f695688a2a42131c2..e3de04f358f06ae6dc9af50585aacddce9d72e18 100644 (file)
@@ -32,8 +32,8 @@ const INFO: drm::DriverInfo = drm::DriverInfo {
     major: 0,
     minor: 0,
     patchlevel: 0,
-    name: c"nova",
-    desc: c"Nvidia Graphics",
+    name: c"nova-drm",
+    desc: c"NVIDIA Graphics and Compute",
 };
 
 const NOVA_CORE_MODULE_NAME: &CStr = c"nova-core";
index d8456f8eaa057897e4dc38ed8c4225b26b78fae3..f918f69e05996894ae7c0fea17e7ab25e3e60d54 100644 (file)
@@ -14,4 +14,4 @@ config NOVA_CORE
 
          This driver is work in progress and may not be functional.
 
-         If M is selected, the module will be called nova_core.
+         If M is selected, the module will be called nova-core.
index 2d78c50126e18bc42cbc406b6ef90cd53face3c2..4ae544f808f42aa1149146956816cd8239695cfe 100644 (file)
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_NOVA_CORE) += nova_core.o
+obj-$(CONFIG_NOVA_CORE) += nova-core.o
+nova-core-y := nova_core.o
index 80264094d44b9ac6c26f40d48ad23a8889f2f5ce..c488058880be0e37dccb3bcf54af973d779162ad 100644 (file)
@@ -52,7 +52,7 @@ struct NovaCoreModule {
 
 impl InPlaceModule for NovaCoreModule {
     fn init(module: &'static kernel::ThisModule) -> impl PinInit<Self, Error> {
-        let dir = debugfs::Dir::new(kernel::c_str!("nova_core"));
+        let dir = debugfs::Dir::new(kernel::c_str!("nova-core"));
 
         // SAFETY: We are the only driver code running during init, so there
         // cannot be any concurrent access to `DEBUGFS_ROOT`.