Messages in this thread | | | Date | Wed, 18 Sep 2019 09:59:05 +0100 | From | Mel Gorman <> | Subject | Re: [PATCH] sched: fix an unused function "node_cpu" warning |
| |
On Tue, Sep 17, 2019 at 10:34:54AM -0400, Qian Cai wrote: > Clang reports a warning, > > kernel/locking/osq_lock.c:25:19: warning: unused function 'node_cpu' > [-Wunused-function] > > due to osq_lock() calls 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 <cai@lca.pw>
Acked-by: Mel Gorman <mgorman@suse.de>
-- Mel Gorman SUSE Labs
| |