lkml.org 
[lkml]   [2019]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] locking/lockdep: remove print_lock_trace function
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@linaro.org>
> ---
> kernel/locking/lockdep.c | 4 ----
> 1 file changed, 4 deletions(-)

Acked-by: Will Deacon <will.deacon@arm.com>

Will

\
 
 \ /
  Last update: 2019-05-24 20:44    [W:0.032 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site