Building out-of-tree kmod's with extra CFLAGS
Philip Prindeville
philipp_subx at redfish-solutions.com
Sun Jun 1 16:23:23 PDT 2025
Hi,
I’m trying to do a version bump of dahdi-linux and it’s failing on the following:
static void inline t4_hdlc_xmit_fifo(struct t4 *wc, unsigned int span, struct t4_span *ts)
because it wants the word “inline” first, then “static” next, and finally the return type.
This is all over the code, unfortunately. Looks like it needs to be compiled with “-Wno-old-style-declaration” to pass muster.
How does one modify the flags passed to out-of-tree kernel modules?
Also not understanding why it builds on my desktop (Ubuntu 24.04.2) but not on Github.
Thanks,
-Philip
More information about the openwrt-devel
mailing list