Files
laptops-kernel/include/linux
Suren Baghdasaryan ec24445306 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.

Fixes: 0e94682b73 ("psi: introduce psi monitor")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20220119223940.787748-2-surenb@google.com
2022-01-27 12:57:19 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-22 08:33:34 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-15 08:47:31 -08:00
…
…
2022-01-09 10:36:51 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-12-10 17:10:55 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-12-10 12:51:28 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-15 08:47:31 -08:00
…
…
…
…
…
2022-01-22 08:33:38 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-20 08:52:54 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-04 13:15:33 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-12-17 09:06:15 +01:00
…
…
…
2021-12-20 09:03:05 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-12-16 22:22:20 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-12 10:14:09 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-15 16:30:28 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-15 16:30:28 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-22 08:33:37 +02:00
…
2022-01-08 12:43:57 -06:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-22 08:33:37 +02:00
…
…
…
…
…
…
…
…
…
2022-01-22 08:33:38 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-12-30 12:13:04 +01:00
…
…
…
…
…
…
…
…
…
2022-01-14 18:50:52 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2022-01-08 00:28:41 -05:00
…
…
…
…
…
…
…
…
…
…