diff options
author | Qian Cai <[email protected]> | 2019-07-19 21:23:19 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-07-25 15:55:05 +0200 |
commit | a1dc0446d64966dc0ae756aebdc449f335742c13 (patch) | |
tree | 75832dda42b57466b5613358f4bba42d33ef4aee /lib/test_overflow.c | |
parent | a07db5c0865799ebed1f88be0df50c581fb65029 (diff) |
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 <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions