OpenCloudOS-Kernel/Documentation/scheduler
Qian Cai 509466b7d4 sched/fair: Fix "runnable_avg_yN_inv" not used warnings
runnable_avg_yN_inv[] is only used in kernel/sched/pelt.c but was
included in several other places because they need other macros all
came from kernel/sched/sched-pelt.h which was generated by
Documentation/scheduler/sched-pelt. As the result, it causes compilation
a lot of warnings,

  kernel/sched/sched-pelt.h:4:18: warning: 'runnable_avg_yN_inv' defined but not used [-Wunused-const-variable=]
  kernel/sched/sched-pelt.h:4:18: warning: 'runnable_avg_yN_inv' defined but not used [-Wunused-const-variable=]
  kernel/sched/sched-pelt.h:4:18: warning: 'runnable_avg_yN_inv' defined but not used [-Wunused-const-variable=]
  ...

Silence it by appending the __maybe_unused attribute for it, so all
generated variables and macros can still be kept in the same file.

Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1559596304-31581-1-git-send-email-cai@lca.pw
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2019-06-17 12:15:58 +02:00
..
completion.txt This is a fairly typical cycle for documentation. There's some welcome 2018-10-24 18:01:11 +01:00
sched-arch.txt asm/system.h: clean asm/system.h from docs 2014-04-07 16:36:11 -07:00
sched-bwc.txt sched: Add documentation for bandwidth control 2011-08-14 12:03:58 +02:00
sched-deadline.txt sched/deadline/Documentation: Add overrun signal and GRUB-PA documentation 2018-05-14 09:12:27 +02:00
sched-design-CFS.txt Documenation: update cgroup's document path 2016-08-03 15:43:58 -06:00
sched-domains.txt sched: Rename sched.c as sched/core.c in comments and Documentation 2013-06-19 12:58:42 +02:00
sched-energy.txt sched/doc: Document Energy Aware Scheduling 2019-01-27 12:29:37 +01:00
sched-nice-design.txt trivial: Miscellaneous documentation typo fixes 2009-06-12 18:01:47 +02:00
sched-pelt.c sched/fair: Fix "runnable_avg_yN_inv" not used warnings 2019-06-17 12:15:58 +02:00
sched-rt-group.txt sched/Documentation/sched-rt-group: Fix incorrect example 2017-01-22 10:34:17 +01:00
sched-stats.txt sched: Remove sched_switch 2012-01-27 13:28:53 +01:00