replace the kernel/rh_taint.c mark_tech_preview function with the following:
void mark_tech_preview(const char *msg, struct module *mod)
{
const char *str = NULL;
if (msg)
str = msg;
#ifdef CONFIG_MODULES
else if (mod && mod->name)
str = mod->name;
#endif
pr_warning("TECH PREVIEW: %s may not be fully supported.\n"
"Please review provided documentation for limitations.\n",
(str ? str : "kernel"));
add_taint(TAINT_TECH_PREVIEW);
#ifdef CONFIG_MODULES
if (mod)
mod->taints |= (1U << TAINT_TECH_PREVIEW);
#endif
}
I've just added the #indef and #endif lines, to support monolithic kernels..