Skip to content

Commit

Permalink
mm-use-stack_depot-for-recording-kmemleaks-backtrace-fix
Browse files Browse the repository at this point in the history
fix build - remove now-unused __save_stack_trace()

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: ke.wang <ke.wang@unisoc.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Zhaoyang Huang <huangzhaoyang@gmail.com>
Cc: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 committed Oct 27, 2022
1 parent 67896b0 commit c059cee
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions mm/kmemleak.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,14 +616,6 @@ static inline depot_stack_handle_t set_track_prepare(void)
}
#endif

/*
* Save stack trace to the given array of MAX_TRACE size.
*/
static int __save_stack_trace(unsigned long *trace)
{
return stack_trace_save(trace, MAX_TRACE, 2);
}

/*
* Create the metadata (struct kmemleak_object) corresponding to an allocated
* memory block and add it to the object_list and object_tree_root (or
Expand Down

0 comments on commit c059cee

Please sign in to comment.