Commit 88f1ebbc256e93bc029ec70b366612801f2c98ad
Committed by
Ingo Molnar
1 parent
54b278b50b
Exists in
master
and in
16 other branches
sched/deadline: Fix sparse static warnings
new sparse warnings: >> kernel/sched/cpudeadline.c:38:6: sparse: symbol 'cpudl_exchange' was not declared. Should it be static? >> kernel/sched/cpudeadline.c:46:6: sparse: symbol 'cpudl_heapify' was not declared. Should it be static? >> kernel/sched/cpudeadline.c:71:6: sparse: symbol 'cpudl_change_key' was not declared. Should it be static? >> kernel/sched/cpudeadline.c:195:15: sparse: memset with byte count of 163928 Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Peter Zijlstra <peterz@infradead.org> Cc: Juri Lelli <juri.lelli@gmail.com> Fixes: 6bfd6d72f51c ("sched/deadline: speed up SCHED_DEADLINE pushes with a push-heap") Link: http://lkml.kernel.org/r/52d47f8c.EYJsA5+mELPBk4t6\%fengguang.wu@intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff
kernel/sched/cpudeadline.c
... | ... | @@ -35,7 +35,7 @@ |
35 | 35 | return (s64)(a - b) < 0; |
36 | 36 | } |
37 | 37 | |
38 | -void cpudl_exchange(struct cpudl *cp, int a, int b) | |
38 | +static void cpudl_exchange(struct cpudl *cp, int a, int b) | |
39 | 39 | { |
40 | 40 | int cpu_a = cp->elements[a].cpu, cpu_b = cp->elements[b].cpu; |
41 | 41 | |
... | ... | @@ -43,7 +43,7 @@ |
43 | 43 | swap(cp->cpu_to_idx[cpu_a], cp->cpu_to_idx[cpu_b]); |
44 | 44 | } |
45 | 45 | |
46 | -void cpudl_heapify(struct cpudl *cp, int idx) | |
46 | +static void cpudl_heapify(struct cpudl *cp, int idx) | |
47 | 47 | { |
48 | 48 | int l, r, largest; |
49 | 49 | |
... | ... | @@ -68,7 +68,7 @@ |
68 | 68 | } |
69 | 69 | } |
70 | 70 | |
71 | -void cpudl_change_key(struct cpudl *cp, int idx, u64 new_dl) | |
71 | +static void cpudl_change_key(struct cpudl *cp, int idx, u64 new_dl) | |
72 | 72 | { |
73 | 73 | WARN_ON(idx > num_present_cpus() || idx == IDX_INVALID); |
74 | 74 |