lib/stackdepot: move stack_record struct definition into the header
authorOscar Salvador <osalvador@suse.de>
Thu, 15 Feb 2024 21:59:02 +0000 (22:59 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 24 Feb 2024 01:48:16 +0000 (17:48 -0800)
commit8151c7a35d8bd8a12e93538ef7963ea209b6ab41
treedb20c75b45da5b843b7930234bf9e88de572f15d
parent3ee34eabac2abb6b1b6fcdebffe18870719ad000
lib/stackdepot: move stack_record struct definition into the header

In order to move the heavy lifting into page_owner code, this one needs to
have access to the stack_record structure, which right now sits in
lib/stackdepot.c.  Move it to the stackdepot.h header so page_owner can
access stack_record's struct fields.

Link: https://lkml.kernel.org/r/20240215215907.20121-3-osalvador@suse.de
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/stackdepot.h
lib/stackdepot.c