diff options
author | 2022-01-19 14:39:39 -0800 | |
---|---|---|
committer | 2022-01-27 12:57:19 +0100 | |
commit | ec2444530612a886b406e2830d7f314d1a07d4bb (patch) | |
tree | 7b133d03f1dc039cd13ffc28906600f14d1e1ad7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | psi: Fix "defined but not used" warnings when CONFIG_PROC_FS=n (diff) | |
download | linux-dev-ec2444530612a886b406e2830d7f314d1a07d4bb.tar.xz linux-dev-ec2444530612a886b406e2830d7f314d1a07d4bb.zip |
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: 0e94682b73bf ("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
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions