aboutsummaryrefslogtreecommitdiff
path: root/Documentation/scheduler/sched-pelt.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/scheduler/sched-pelt.c')
-rw-r--r--Documentation/scheduler/sched-pelt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/scheduler/sched-pelt.c b/Documentation/scheduler/sched-pelt.c
index e4219139386a..7238b355919c 100644
--- a/Documentation/scheduler/sched-pelt.c
+++ b/Documentation/scheduler/sched-pelt.c
@@ -20,7 +20,8 @@ void calc_runnable_avg_yN_inv(void)
int i;
unsigned int x;
- printf("static const u32 runnable_avg_yN_inv[] = {");
+ /* To silence -Wunused-but-set-variable warnings. */
+ printf("static const u32 runnable_avg_yN_inv[] __maybe_unused = {");
for (i = 0; i < HALFLIFE; i++) {
x = ((1UL<<32)-1)*pow(y, i);