I use BMQ and I copied my (working) .config from gentoo-sources-5.12.10. Compilation fails: In file included from kernel/sched/alt_core.c:46: kernel/sched/pelt.h: In function ‘cfs_se_util_change’: kernel/sched/pelt.h:51:7: error: implicit declaration of function ‘sched_feat’; did you mean ‘sched_dead’? [-Werror=implicit-function-declaration] 51 | if (!sched_feat(UTIL_EST)) | ^~~~~~~~~~ | sched_dead kernel/sched/pelt.h:51:18: error: ‘UTIL_EST’ undeclared (first use in this function) 51 | if (!sched_feat(UTIL_EST)) | ^~~~~~~~ kernel/sched/pelt.h:51:18: note: each undeclared identifier is reported only once for each function it appears in
Can confirm this issue as well.
Happened to me here too. I `find`ed and grepped on my own initiative out of curiosity; sched_feat is a macro defined in kernel/sched/sched.h, which should be included before pelt.h wherever the latter is included. So why would GCC be treating it as a function?
Created attachment 716589 [details, diff] [PATCH] prjc: fix compilation error You can use this patch, if it doesn't make it in BMQ before 5.12.12 is released, I'll incorporate it into genpatches
*** Bug 796479 has been marked as a duplicate of this bug. ***
Thanks, patch works.
This is release in gentoo-sources-5.12.12 Thanks for reporting.