diff options
| author | Miguel Ojeda <[email protected]> | 2025-07-26 13:34:35 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-08-12 19:10:50 +0000 |
| commit | 252fea131e15aba2cd487119d1a8f546471199e2 (patch) | |
| tree | 9140a2d54d99efacaa550433d47a8640e857cd12 /drivers/gpu/drm/omapdrm/omap_fb.h | |
| parent | rust: workaround `rustdoc` target modifiers bug (diff) | |
| download | kernel-252fea131e15aba2cd487119d1a8f546471199e2.tar.gz kernel-252fea131e15aba2cd487119d1a8f546471199e2.zip | |
rust: kbuild: clean output before running `rustdoc`
`rustdoc` can get confused when generating documentation into a folder
that contains generated files from other `rustdoc` versions.
For instance, running something like:
rustup default 1.78.0
make LLVM=1 rustdoc
rustup default 1.88.0
make LLVM=1 rustdoc
may generate errors like:
error: couldn't generate documentation: invalid template: last line expected to start with a comment
|
= note: failed to create or modify "./Documentation/output/rust/rustdoc/src-files.js"
Thus just always clean the output folder before generating the
documentation -- we are anyway regenerating it every time the `rustdoc`
target gets called, at least for the time being.
Cc: [email protected] # Needed in 6.12.y and later (Rust is pinned in older LTSs).
Reported-by: Daniel Almeida <[email protected]>
Closes: https://rust-for-linux.zulipchat.com/#narrow/channel/288089/topic/x/near/527201113
Reviewed-by: Tamir Duberstein <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.h')
0 files changed, 0 insertions, 0 deletions
