Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common_drivers/drivers/debug/sched.c:480:26: error: 'sysctl_sched_latency' undeclared (first use in this function) #12

Open
ColorfulRhino opened this issue Mar 29, 2024 · 0 comments

Comments

@ColorfulRhino
Copy link

Hello!

When building khadas-vims-5.15.y https://github.com/khadas/linux/tree/khadas-vims-5.15.y kernel with EXPERT=n DEBUG_KERNEL=n in the kernel config, the kernel build fails when using the common drivers. This is the error message:

common_drivers/drivers/debug/sched.c: In function 'aml_place_entity':
   common_drivers/drivers/debug/sched.c:480:26: error: 'sysctl_sched_latency' undeclared (first use in this function); did you mean 'sysctl_sched_features'?
     480 |                 thresh = sysctl_sched_latency / sched_place_entity_factor;
         |                          ^~~~~~~~~~~~~~~~~~~~
         |                          sysctl_sched_features
   common_drivers/drivers/debug/sched.c:480:26: note: each undeclared identifier is reported only once for each function it appears in
   common_drivers/drivers/debug/sched.c: At top level:
   cc1: note: unrecognized command-line option '-Wno-enum-int-mismatch' may have been intended to silence earlier diagnostics
   make[3]: *** [scripts/Makefile.build:287: common_drivers/drivers/debug/sched.o] Error 1
   make[3]: *** Waiting for unfinished jobs....

Build log: https://paste.armbian.com/vayopihuba

Issue seems to be here:

thresh = sysctl_sched_latency / sched_place_entity_factor;

error: 'sysctl_sched_latency' undeclared (first use in this function)

ColorfulRhino referenced this issue in armbian/build Mar 30, 2024
This makes the process even more automatic, requiring less manual changes in the config in case of having to solve dependency chains.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant