]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/unwind_user: Guard unwind_user_word_size() by UNWIND_USER
authorJens Remus <jremus@linux.ibm.com>
Mon, 8 Dec 2025 16:03:51 +0000 (17:03 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 17 Dec 2025 12:31:08 +0000 (13:31 +0100)
commitaa6047ef7204ea1faa346b9123439abed0546f7e
treed969f215413cbf5f5eb25e5eed9af9ab83150e75
parent2652f9a4b019e34fbbde8dcd1396f1f00ec4844f
x86/unwind_user: Guard unwind_user_word_size() by UNWIND_USER

The unwind user framework in general requires an architecture-specific
implementation of unwind_user_word_size() to be present for any unwind
method, whether that is fp or a future other method, such as potentially
sframe.

Guard unwind_user_word_size() by the availability of the UNWIND_USER
framework instead of the specific HAVE_UNWIND_USER_FP method.

This facilitates to selectively disable HAVE_UNWIND_USER_FP on x86
(e.g. for test purposes) once a new unwind method is added to unwind
user.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251208160352.1363040-4-jremus@linux.ibm.com
arch/x86/include/asm/unwind_user.h