]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:14 +0000 (16:38 +0200)
commitb8a3bc8e75cf4361d955ed2527b9402cbb879910
treec20f3557a515f22ba2117f88550050e894094eaf
parentbefe2f4ed27619197510116c70ba95d37f85dcac
lib/stackdepot: move stack_record struct definition into the header

[ Upstream commit 8151c7a35d8bd8a12e93538ef7963ea209b6ab41 ]

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>
Stable-dep-of: a6c1d9cb9a68 ("stackdepot: rename pool_index to pool_index_plus_1")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/stackdepot.h
lib/stackdepot.c