diff options
author | Qian Cai <[email protected]> | 2019-09-17 10:34:54 -0400 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2019-09-18 12:38:17 +0200 |
commit | 42fd8baab31f53bed2952485fcf0e92f244c5e55 (patch) | |
tree | 0991daeeb794da8387775c99c9f91e2caef71621 /drivers/usb/cdns3/cdns3-plat.c | |
parent | dac9f027b1096c5f03ca583e787aac0f852e8f78 (diff) |
sched/core: Convert vcpu_is_preempted() from macro to an inline function
Clang reports this warning:
kernel/locking/osq_lock.c:25:19: warning: unused function 'node_cpu' [-Wunused-function]
due to osq_lock() calling vcpu_is_preempted(node_cpu(node->prev))), but
vcpu_is_preempted() is compiled away. Fix it by converting the dummy
vcpu_is_preempted() from a macro to a proper static inline function.
Signed-off-by: Qian Cai <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions