]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Warn if garbage is passed to default_wake_function()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Jul 2020 20:10:42 +0000 (21:10 +0100)
committerIngo Molnar <mingo@kernel.org>
Fri, 24 Jul 2020 12:40:25 +0000 (14:40 +0200)
commit9fcdf66421de15a1cc98f466a8c89a80e32a9d47
tree207ede7bd6994fd806376df3fba9ed5304fb7d9f
parent5439abf628837d9ebb0fba694f06280dc2878fe2
sched: Warn if garbage is passed to default_wake_function()

Since the default_wake_function() passes its flags onto
try_to_wake_up(), warn if those flags collide with internal values.

Given that the supplied flags are garbage, no repair can be done but at
least alert the user to the damage they are causing.

In the belief that these errors should be picked up during testing, the
warning is only compiled in under CONFIG_SCHED_DEBUG.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: https://lore.kernel.org/r/20200723201042.18861-1-chris@chris-wilson.co.uk
kernel/sched/core.c