summaryrefslogtreecommitdiffstats
path: root/kernel/sched/clock.c
diff options
context:
space:
mode:
authorQian Cai <cai@lca.pw>2019-07-19 21:23:19 -0400
committerIngo Molnar <mingo@kernel.org>2019-07-25 15:55:05 +0200
commita1dc0446d64966dc0ae756aebdc449f335742c13 (patch)
tree75832dda42b57466b5613358f4bba42d33ef4aee /kernel/sched/clock.c
parenta07db5c0865799ebed1f88be0df50c581fb65029 (diff)
downloadlinux-a1dc0446d64966dc0ae756aebdc449f335742c13.tar.bz2
sched/core: Silence a warning in sched_init()
Compiling a kernel with both FAIR_GROUP_SCHED=n and RT_GROUP_SCHED=n will generate a compiler warning: kernel/sched/core.c: In function 'sched_init': kernel/sched/core.c:5906:32: warning: variable 'ptr' set but not used It is unnecessary to have both "alloc_size" and "ptr", so just combine them. 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> Cc: valentin.schneider@arm.com Link: https://lkml.kernel.org/r/20190720012319.884-1-cai@lca.pw Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/clock.c')
0 files changed, 0 insertions, 0 deletions