mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
The rust-analyzer generator script recognizes a crate when its corresponding `.o` appears in the Rust source file's immediate `Makefile` or `Kbuild` file. Commitca524e273c("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:ca524e273c("gpu: build nova-core and nova-drm from drivers/gpu/Makefile") Signed-off-by: Alexandre Courbot <[email protected]> Tested-by: Timur Tabi <[email protected]> Reviewed-by: Onur Özkan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
4 lines
137 B
Makefile
4 lines
137 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# nova-core is built from drivers/gpu/Makefile.
|
|
# nova_core.o (rust-analyzer marker - DO NOT REMOVE).
|