Skip to content

Commit 824397d

Browse files
committed
CI: rfl: add a Clippy build
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent d783b1d commit 824397d

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/ci/docker/scripts/rfl-build.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ set -euo pipefail
44

55
LINUX_VERSION=4c7864e81d8bbd51036dacf92fb0a400e13aaeee
66

7-
# Build rustc, rustdoc and cargo
8-
../x.py build --stage 2 library rustdoc
7+
# Build rustc, rustdoc, cargo and clippy-driver
8+
../x.py build --stage 2 library rustdoc clippy
99
../x.py build --stage 0 cargo
1010

1111
# Install rustup so that we can use the built toolchain easily, and also
@@ -79,3 +79,14 @@ make -C linux LLVM=1 -j$(($(nproc) + 1)) \
7979
# Generate documentation
8080
make -C linux LLVM=1 -j$(($(nproc) + 1)) \
8181
rustdoc
82+
83+
# Re-build with Clippy enabled
84+
#
85+
# This should not introduce Clippy errors, since `CONFIG_WERROR` is not
86+
# set (thus no `-Dwarnings`) and the kernel uses `-W` for all Clippy
87+
# lints, including `clippy::all`. However, it could catch ICEs.
88+
make -C linux LLVM=1 -j$(($(nproc) + 1)) CLIPPY=1 \
89+
samples/rust/rust_minimal.o \
90+
samples/rust/rust_print.o \
91+
drivers/net/phy/ax88796b_rust.o \
92+
rust/doctests_kernel_generated.o

0 commit comments

Comments
 (0)