Messages in this thread | | | Date | Fri, 24 May 2019 19:44:31 +0100 | From | Will Deacon <> | Subject | Re: [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
| |