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

2019-09-17 Thread Christoph Lameter
On Tue, 17 Sep 2019, David Rientjes wrote: > Acked-by: David Rientjes Ditto

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

2019-09-17 Thread Christoph Lameter
On Tue, 17 Sep 2019, David Rientjes wrote: > 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. > > > >

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

2019-09-17 Thread David Rientjes
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 Acked-by: David Rientjes

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

2019-09-17 Thread Qian Cai
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 --- mm/slub.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/slub.c