Closed ppar closed 2 years ago
Hi, I observe same issue and get to the same conclusion, It seem "-Werror=return-type" appear at 4.19.0-14-amd64, i have successfully build the module on a 4.19.0-13-amd64
I have fixed the error in commit 8f7a213c14f5b074e5432e33c082f99487b3e97d.
TL;DR
mcu/rtmp_mcu.c
due to-Werror=return-type
/usr/src/linux-headers-$(uname -r)/Makefile
works around itLong version:
Removing the offending -W... option from the global Makefile works around the problem and the module compiles successfully. Looking at mcu/rtmp_mcu.c it doesn't look like the functions aren't supposed to return anything, but I didn't dig any deeper.
Environment:
Installed kernel:
Hardware:
Compiled against revision:
Error from make:
Applied hack: