diff options
| author | Alexandre Courbot <acourbot@nvidia.com> | 2026-07-01 15:40:51 +0900 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-03 23:27:39 +0200 |
| commit | 78900738d981c97aad929e33620340d0d9bcfc82 (patch) | |
| tree | a984b3f0c42ec6fae61fb7ce038406351bdacf09 /drivers/gpu/drm/nova | |
| parent | a73a398a68ca9b9e5116a617562471f16b8310c4 (diff) | |
| download | linux-next-78900738d981c97aad929e33620340d0d9bcfc82.tar.gz linux-next-78900738d981c97aad929e33620340d0d9bcfc82.zip | |
gpu: nova: fix rust-analyzer generation
The rust-analyzer generator script recognizes a crate when its
corresponding `.o` appears in the Rust source file's immediate `Makefile`
or `Kbuild` file.
Commit ca524e273c43 ("gpu: build nova-core and nova-drm from
drivers/gpu/Makefile") moves the build rules for `nova-core` and
`nova-drm` into `drivers/gpu/Makefile`, which results in the generator
script ignoring these crates.
Fix this by naming the crates' module as a comment in their respective
`Makefile`; this is enough for the script to pick them up and restore
`rust-analyzer` functionality on them.
Fixes: ca524e273c43 ("gpu: build nova-core and nova-drm from drivers/gpu/Makefile")
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Onur Özkan <work@onurozkan.dev>
Link: https://patch.msgid.link/20260701-nova-rust-analyzer-v1-1-5209f486f10d@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/nova')
| -rw-r--r-- | drivers/gpu/drm/nova/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nova/Makefile b/drivers/gpu/drm/nova/Makefile index b9fad3956358..6355f7502c48 100644 --- a/drivers/gpu/drm/nova/Makefile +++ b/drivers/gpu/drm/nova/Makefile @@ -1,2 +1,3 @@ # SPDX-License-Identifier: GPL-2.0 # nova-drm is built from drivers/gpu/Makefile. +# nova.o (rust-analyzer marker - DO NOT REMOVE). |
