Skip to content

livepatch error on 4.14.5 #113

Closed
Closed

Description

@loxdegio

kernel/livepatch/transition.c: In function ‘klp_try_switch_task’: kernel/livepatch/transition.c:294:2: error: unknown type name ‘rq_flags_t’ rq_flags_t flags; ^ kernel/livepatch/transition.c:317:26: error: passing argument 2 of ‘task_rq_lock’ from incompatible pointer type [-Werror=incompatible-pointer-types] rq = task_rq_lock(task, &flags); ^ In file included from kernel/livepatch/transition.c:27:0: kernel/livepatch/../sched/sched.h:1703:12: note: expected ‘struct rq_flags *’ but argument is of type ‘int *’ struct rq *task_rq_lock(struct task_struct *p, struct rq_flags *rf) ^ kernel/livepatch/transition.c:336:27: error: passing argument 3 of ‘task_rq_unlock’ from incompatible pointer type [-Werror=incompatible-pointer-types] task_rq_unlock(rq, task, &flags); ^ In file included from kernel/livepatch/transition.c:27:0: kernel/livepatch/../sched/sched.h:1715:1: note: expected ‘struct rq_flags *’ but argument is of type ‘int *’ task_rq_unlock(struct rq *rq, struct task_struct *p, struct rq_flags *rf) ^ cc1: some warnings being treated as errors

This is the error I got today compiling from sources.

Can you please check?

Activity

  1. heftig commented on Dec 12, 2017

    @heftig

    MuQSS is incompatible with kernel live patching. Fixed in 4.14/master.

  2. loxdegio commented on Dec 12, 2017

    @loxdegio
    Author

    I disabled MuQSS before compile.
    Anyway pulled the correction same error.
    I'll try re-enabling it, maybe if MuQSS is disabled some include could be missed

    Not solved can you reopen?

  3. reopened this on Dec 12, 2017
  4. loxdegio commented on Dec 12, 2017

    @loxdegio
    Author

    Enabling MuQSS it seems not show the error anymore

  5. heftig commented on Dec 12, 2017

    @heftig

    Should be fixed now.

  6. loxdegio commented on Dec 12, 2017

    @loxdegio
    Author

    It seems it is solved now, thank you :)

  7. added a commit that references this issue on Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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