Re: breaking modules

From: Eugene Grosbein <>
Date: Tue, 03 May 2022 20:51:52 UTC
04.05.2022 2:42, Ed Maste wrote:

> On Fri, 29 Apr 2022 at 14:43, Eugene Grosbein <> wrote:
>> For example:
>> if_em 
>> if_epair
>> linuxkpi
> Ah, yes. We should add a CI task to build all modules outside of the
> kernel tree.

Also, there are multiple modules that can be built standalone just fine
but cannot be loaded with GENERIC kernel. In case of stable/12 examples are:

if_bridge.ko and bridgestp.ko;
linux_common.ko, linprocfs.ko, linux.ko and linux64.ko;
h_ertt.ko and cc_chd.ko and surely many others.

Noted modules are built standalone without VIMAGE support but GENERIC has options VIMAGE,
hence ABI incompatibility. Somewhat hackish workaround is the following line added to /etc/src.conf:

CFLAGS+=        -DVIMAGE=1

This restores ABI compatibility. Unfortunately, we have no VIMAGE= nor WITH_VIMAGE= knob.
See also
that contains a patch by ae@