Skip to content

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

@ColorfulRhino

Description

@ColorfulRhino

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions