Re: [PATCH v4 0/9] Rust Abstractions for PWM subsystem with TH1520 PWM driver

From: Drew Fustini
Date: Thu Jun 19 2025 - 20:53:05 EST


On Wed, Jun 18, 2025 at 02:27:33PM +0200, Michal Wilczynski wrote:
> This patch series introduces Rust support for the T-HEAD TH1520 PWM
> controller and demonstrates its use for fan control on the Sipeed Lichee
> Pi 4A board.
[snip]
> [2] - https://github.com/mwilczy/linux/commits/rust-next-pwm-working-fan-for-sending-v8/

I checked out your branch and get a compiler error about missing pwm.c:

$ make W=1 LLVM=1 ARCH=riscv
CALL scripts/checksyscalls.sh
BINDGEN rust/bindings/bindings_helpers_generated.rs
rust/helpers/helpers.c:34:10: fatal error: 'pwm.c' file not found
Unable to generate bindings: clang diagnosed error: rust/helpers/helpers.c:34:10: fatal error: 'pwm.c' file not found

make[2]: *** [rust/Makefile:371: rust/bindings/bindings_helpers_generated.rs] Error 1
make[2]: *** Deleting file 'rust/bindings/bindings_helpers_generated.rs'
make[1]: *** [/home/pdp7/linux/Makefile:1280: prepare] Error 2
make: *** [Makefile:248: __sub-make] Error 2

Did I do something wrong?

My kernel config:
ihttps://gist.github.com/pdp7/8f5b4324a43119f39d4c40158bf3325e

Thanks,
Drew