Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f69b5bfb authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by Lee Jones
Browse files

UPSTREAM: psi: Fix "no previous prototype" warnings when CONFIG_CGROUPS=n



When CONFIG_CGROUPS is disabled psi code generates the following warnings:

kernel/sched/psi.c:1112:21: warning: no previous prototype for 'psi_trigger_create' [-Wmissing-prototypes]
    1112 | struct psi_trigger *psi_trigger_create(struct psi_group *group,
         |                     ^~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:1182:6: warning: no previous prototype for 'psi_trigger_destroy' [-Wmissing-prototypes]
    1182 | void psi_trigger_destroy(struct psi_trigger *t)
         |      ^~~~~~~~~~~~~~~~~~~
kernel/sched/psi.c:1249:10: warning: no previous prototype for 'psi_trigger_poll' [-Wmissing-prototypes]
    1249 | __poll_t psi_trigger_poll(void **trigger_ptr,
         |          ^~~~~~~~~~~~~~~~

Change declarations of these functions in the header to provide the
prototypes even when they are unused.

Bug: 254441685
Fixes: 0e94682b73bf ("psi: introduce psi monitor")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220119223940.787748-2-surenb@google.com


(cherry picked from commit ec2444530612a886b406e2830d7f314d1a07d4bb)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I9cdc2667821733d7b66b0f13db0eb32db3265351
parent 27065f26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment