Skip to content

Instantly share code, notes, and snippets.

@pfactum
Created December 24, 2018 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pfactum/12fd56a4548c772c0d985ebe2c8350dc to your computer and use it in GitHub Desktop.
Save pfactum/12fd56a4548c772c0d985ebe2c8350dc to your computer and use it in GitHub Desktop.
kernel/sched/psi.c: In function ‘cgroup_move_task’:
kernel/sched/psi.c:661:7: error: implicit declaration of function ‘task_rq_lock’; did you mean ‘task_unlock’? [-Werror=implicit-function-declarati
on]
rq = task_rq_lock(task, &rf);
^~~~~~~~~~~~
task_unlock
kernel/sched/psi.c:661:5: warning: assignment to ‘struct rq *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
rq = task_rq_lock(task, &rf);
^
kernel/sched/psi.c:663:6: error: implicit declaration of function ‘task_on_rq_queued’ [-Werror=implicit-function-declaration]
if (task_on_rq_queued(task))
^~~~~~~~~~~~~~~~~
kernel/sched/psi.c:680:2: error: implicit declaration of function ‘task_rq_unlock’; did you mean ‘task_unlock’? [-Werror=implicit-function-declara
tion]
task_rq_unlock(rq, task, &rf);
^~~~~~~~~~~~~~
task_unlock
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:292: kernel/sched/psi.o] Error 1
make[1]: *** [scripts/Makefile.build:516: kernel/sched] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment