Re: [PATCH] locking/lockdep: remove print_lock_trace function
From: Will Deacon
Date: Fri May 24 2019 - 14:47:38 EST
On Thu, May 16, 2019 at 09:13:26PM +0200, Anders Roxell wrote:
> gcc warns that function print_lock_trace() is unused if
> CONFIG_PROVE_LOCKING isn't set.
>
> ../kernel/locking/lockdep.c:2820:13: warning: âprint_lock_traceâ defined
> but not used [-Wunused-function]
> static void print_lock_trace(struct lock_trace *trace, unsigned int
> spaces)
>
> Rework so we remove the function if CONFIG_PROVE_LOCKING isn't set.
>
> Fixes: c120bce78065 ("lockdep: Simplify stack trace handling")
> Signed-off-by: Anders Roxell <anders.roxell@xxxxxxxxxx>
> ---
> kernel/locking/lockdep.c | 4 ----
> 1 file changed, 4 deletions(-)
Acked-by: Will Deacon <will.deacon@xxxxxxx>
Will