On Mon, May 3, 2021 at 7:00 PM 'Nick Desaulniers' via Clang Built Linux clang-built-linux@googlegroups.com wrote:
ERROR: "__memcat_p" [drivers/hwtracing/stm/stm_core.ko] undefined!
I'm fairly sure this is unrelated to my patch, but I don't see what happened here.
It's unrelated to your patch. It was fixed in 5.7 by 7273ad2b08f8ac9563579d16a3cf528857b26f49 and a few other dependencies according to https://github.com/ClangBuiltLinux/linux/issues/515.
Ah right, the big hammer.
Greg, not sure what we want to do here. Backporting
7273ad2b08f8 ("kbuild: link lib-y objects to vmlinux forcibly when CONFIG_MODULES=y")
to v5.4 and earlier would be an easy workaround, but it has the potential of adding extra bloat to the kernel image since it links in all other library objects as well.
Arnd