Re: [PATCH] mm/slub: fix -Wunused-function compiler warnings

From: David Rientjes
Date: Tue Sep 17 2019 - 17:23:38 EST


On Tue, 17 Sep 2019, Qian Cai wrote:

> tid_to_cpu() and tid_to_event() are only used in note_cmpxchg_failure()
> when SLUB_DEBUG_CMPXCHG=y, so when SLUB_DEBUG_CMPXCHG=n by default,
> Clang will complain that those unused functions.
>
> Signed-off-by: Qian Cai <cai@xxxxxx>

Acked-by: David Rientjes <rientjes@xxxxxxxxxx>